In your example, you have two calls to $('#elements').sortable().
The second one has the update event added, but the first (the one which
creates the sortable) doesn't. If you add the update handler to the
first call, it works OK.
on 23/02/2010 08:26 rafald said::
Hi ,
please check this:
)
was creating the sortable list - the second call (within
$(document).ready) was ignored.
Hope this helps,
Peter
on 23/02/2010 10:32 rafald said::
Hi Peter,
Indeed! It works ;-) THANKS!
It was enough to remove line with $(#elements).sortable();
So, what is the right place to put:
$(#elements
You can use selectors to do this quite easily - I've posted an example at:
http://jsbin.com/uwaxo/
This has:
1. a checkbox which will select/deselect all others in the page (no
matter whether they are in different forms/fieldsets,
2. a checkbox which uses a descendant selector $('#fieldset1
Use google.setOnLoadCallback to add whatever plugins you need using
jQuery's $.getScript function like this:
google.load(jquery, 1);
google.setOnLoadCallback(function() {
$.getScript(http://inlinemultiselect.googlecode.com/files/jquery.inlinemultiselect-1.2.min.js;,
function(){
There is an interesting article about optimising YUI for Safari/iPhone at:
http://tinyurl.com/y97karc
(there was a problem with the blog's database connection, so this links to a
cached version)
With the following in it:
Some examples of the kinds of things an iPhone-specific site doesn’t need:
requests sooner
keep with the minified and gzipped version to keep the data sent
across the connection to a minimum...ripping apart the library
just doesn't seem worth the payoff, which isn't much anyways
On Jan 14, 10:08 am, Peter Edwards p...@bjorsq.net wrote:
There is an interesting
You need a hash symbol for your button selector, and change the toggle
to click:
$(#dt-link1).click(function() {
$('#jqdt').find('ol li:eq(0)').css(color,Blue);
return false;
});
on 11/01/2010 22:45 JQueryNewbie said::
I cant get my color change on my listitem. any help would be
Hi there,
I've put up a basic example of how you would do this at:
http://jsbin.com/ahevu
(to edit the code, go to http://jsbin.com/ahevu/edit)
I've used mouseenter to demonstrate - if you need a hover effect, then
you will need to save the original dimensions/position of the div you
are
You could use the title attribute rather than your non-standard txt
attribute, and achieve the same thing using:
script type=text/javascript
$(document).ready(function(){
$(#tryme).click( function(){
var checkedGenres = [];
$(input[rel='genre']:checked).each(function(){
If there's an error, the dredded IE doesn't throw up any error,
normally its on the ball in that department.
And I can't post a link (unless I do it privately?) as its a
pre-production site.
FWIW, I copied the example from the JForm site letter by letter -
still not firing; removed all other
But thats after the (test) alert box, and I'm not even getting that
popping up. Surely I should be seeing the alert on submit?
2009/12/22 Stumps mkloub...@gmail.com:
Use $(this).ajaxSubmit(options); instead of $(this).ajaxForm
(options);
.ajaxForm will bind a form to automatically post back
Hey,
don't use document.write() or alert() to debug - either use
console.log() or have a div in the document which can display debugging
information and append any data to it.
$('#testform').live('submit',function(){
var formData = $(this).serialize();
console.log(formData);
It seems IE8 inherit the bug on opacity in IE7. Which remove the
Bold
On Nov 19, 5:21 am, Peter Crymble peter.crym...@gmail.com wrote:
Hey - hope you are all well.
I have a simply Jquery script which acts as a rollover - on mouseover
if fades the opacity, and then back again. Heres the code
add code
error: function(e,e2,e3){alert(e2);},
before success (in fact you can add anywhere in the ajax object).
i think you will got a alert error.
if so. that's mean your return is not a well format json.
On Nov 19, 5:37 am, Juriy juriy.b...@gmail.com wrote:
Hi,
I'm
The link you gave, just fixed the height of the container.
But if you want to do so, you can first:
1.) when document ready, show all tabs at first
2.) loop though and get the height of each to choose the max
3.) hide all tabs (left the default show)
On Nov 18, 10:34 am, danito
use $.ajax() instead, you can define function when the ajax fails
On Nov 18, 12:17 am, Humpty Dumpty ste...@gmail.com wrote:
Hi guys,
I write a web page that retrieve the data from a JSON formatted file
but when this fiel doesn't exist I can't see any error;
how I can handle this situation
Can you show the code you are using.
On Nov 18, 1:18 pm, g...@iec abhi.pur...@gmail.com wrote:
Can anybody provide me with some suggestions regarding above mentioned
issue
On Nov 17, 7:15 pm, g...@iec abhi.pur...@gmail.com wrote:
Hi all,
I have came across an issue related to xml
at http://77.68.37.37/index.aspx
Thanks!
Peter
$().ready I think the problem is there, what selector you pass to
the jquery? Nothing!
$(document).ready(...);
OR
$(window).ready(...);
maybe your choice.
On Nov 17, 9:11 am, ReynierPM rper...@uci.cu wrote:
Hi every:
I'm trying to use jCorner to get rounded effects in some of my DIV but
I think you mean this,
$(sth).animate({the css}, [duration], function(){
calcHere();
})
On Nov 17, 10:14 am, nabrown78 nabrow...@gmail.com wrote:
I am animating an image's height. Afterwards, I want to know the
image's width. The following code gives the image's width prior to the
Did you ask in http://jquerybox.com/index.php/topic,760.0.html ???
I had just answered you there!
I had tested in FF and IE7. here are the code I used. Since my english
is not that good, I hope I got what you wanted.
script
$(function(){
$('select').each(function(){
script type=text/javascript
$(function(){
$('settings').find('type').text(b);
});
/script
settings
typea/type
/settings
You mean that?
where is your xml?
get by ajax?
inpage?
On Nov 16, 3:39 pm, Shane wishiwasmiss...@gmail.com wrote:
Hey guys,
Is it possible to use jQuery to
$(document).ready() {
should be
$(document).ready(function(){
On Nov 17, 8:06 am, echobase bushbr...@gmail.com wrote:
Hi-
I'm just getting into jQuery plugins and I wanted to do a sort of
'hello world' exercise with a barebones plugin template. My template
code is below but I can't get the
rubbish in FF.
Any thoughts on how to fix this would be appreciated.
site is: http://www.wilkinson-associates.co.uk/
Thanks.
Peter
Hi there,
The only way I could find to do this with the $.get function was to
parse out the query string - the success callback should get a copy of
the options object which was used to set up the ajax request, but the
data parameter is NULL in this object for GET requests (it is populated
Have you thought of using a rich text editor to do this such as
TinyMCE and FCKEditor - they both have paste from clipboard
functionality
On Fri, Sep 18, 2009 at 11:12 AM, Hogsmill i...@hogsmill.com wrote:
This may or may not be possible, but if anyone knows a way to do it,
I'd love to hear
You could try looping through the document.styleSheets collection and
testing the disabled attribute:
var styleSheetsDisabled = false;
for (var i = 0; i document.styleSheets.length; i++) {
if (document.styleSheets.item(i).disabled) {
styleSheetsDisabled = true;
}
}
Not sure if this
How do I unsubscribe this Newsgroup?
Von meinem iPhone gesendet
Thank you amuhlou. That's what I tried first but I still get all the
mails. Is there another way to unsubscribe or can some moderator just
kick me out of all the jQuery groups I'm in right now maybe? Thanks
for any help.
Peter
Von meinem iPhone gesendet
Am 01.09.2009 um 22:44 schrieb
Try this - it may work for you:
$(function(){
var srch = [ foo, bar ] ;
// make a Regex from the search terms
var attr_regex = '('+srch.join('|')+')';
$('#gallery li').each(function(){
if ($(this).attr(title).match(attr_regex)) {
$(this).css({background:'#f00'});
}
});
});
Your code suffers from asynchronousitis. You call the ajax request, but
alert the total before the response can alter the variable. Try doing it
in the success callback as the previous poster suggested and you will
get the correct value:
var total = 0;
function readXML(section) {
Hi Chris,
I have a working example at:
http://jsbin.com/udota/
I've made the number of second inputs configurable so you can test it.
All you need now is a way of checking if they all add up to 100 if you
make them user configurable - I'll leave that up to you though!
Peter
on 19/08/2009
, #+anchorname);
});
});
A regex would be more elegant if I had the time to write one and test
it, but this should suffice for most situations.
Peter
on 17/08/2009 20:07 knal said::
Hi group,
I'm looking for a correct way of manipulating a hrefs...
The code looks like this:
ul id=my_list
lia href
try this:
$(a.newWindow).attr(title, $(a.newWindow).attr(title)+ - This link
will open in a new window);
On Tue, Aug 11, 2009 at 10:45 AM, Paul Collins pauldcoll...@gmail.comwrote:
Hi all,
This is hopefully simple. I have a bunch of links with titles, like
TITLE=Facebook and so on. I am
I've reworked your code a little with a working example at:
http://jsbin.com/ecumi
I have changed classes and ids in the document a little to make it
easier to do the selectors, but I know it could probably be done more
efficiently.
Peter
on 06/08/2009 01:13 ripcurlksm said::
For once, I
Hi Nick
$(.number).html(count--);
count-- decrements your count variable after it has passed its value to
the $.html() function.
use --count
Peter
on 03/08/2009 21:15 littlerobothead said::
I have a status area in an app I'm working on. It shows the number of
unread alerts. As the user
Hi Eswip,
It is possible to use the getEndTime method of the quicktime movie, but
I think only when the plugin/movie has loaded. Apple docs:
http://developer.apple.com/documentation/QuickTime/REF/QT41_HTML/QT41WhatsNew-74.html
Not sure how you would implement this though...
bjorsq
on
Hi JD,
In your success callback, you have access to ajax options through the
this keyword, so you can get the full URL by doing this within the
success callback:
alert(this.url+'?'+this.data);
peter
on 15/07/2009 13:30 Mean Mike said::
if you just need to see what your posting and what
Hi Dimitriy,
To get the options used by the xhr request (including the ContentType
header), use the this keyword in the callback function:
$.post(url, data, function(){
/* the content of this from a typical $.post operation
this[type]=POST
this[url]=url
this[data]=data
);
}
});
});
The most important change is using the disabled attribute on the field
rather than the javascript property.
I've tried the above on a text input field to see if it worked (so I had
a visual cue to whether the field was disabled or not) and it does.
Peter
on 13/07/2009 14:49 Matt Zagrabelny said
Why is the type attribute of the script tag set to
application/x-javascript
rather than
text/javascript
?
on 09/07/2009 21:40 Paulodemoc said::
the address to js is correct, it opens just fine.
I created a new document:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://
I just can't figure this one out, and it's got to be something silly,
since I can't find anyone else having the problem. My code looks like
this:
$('#edit' .postcontent').load('admin-ajax.php', {'action':'qe-
getpost'});
Everything works great - the returned value is loaded
into .postcontent
hi,
when I use the $(.main_view).load( my.php );
all my danish letters are rendered wrong.
is there something I need to do in the my.php to make sure it
shows the danish characters correctly?
anyone?
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
to come
when I put content inside my visual frame? Can someone point it out
for me?
another question is... is there any other method that can make the
left and right sides get the correct length? or is jquery the only way
to do that?
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG
100's of different
combinations... any suggestion
what to do to get less code would be super.
peter
On Tue, Jun 23, 2009 at 1:07 PM, Charlie charlie...@gmail.com wrote:
you can accompish this 4 corner box with far less markup, standard css
with no script
there's lots of css tutorials
Hi Liam,
your method isn't flexible enough,
thanks for trying
peter
On Tue, Jun 23, 2009 at 4:04 PM, Liam Potter radioactiv...@gmail.comwrote:
3 images
1) the top bar,
2) the full width of the panel (including shadow)
3) bottom corners
3 divs
div id=top/div
div id=content
content
does
one do that?
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
Hi Bharath,
Your code would never work on my machine (even in IE) as I have set it
up so PDFs display in a standalone reader (i.e. do NOT use the browser
plug-in).
Is the problem that the PDF does not download at all in Mozilla under
some set of circumstances?
Peter
on 22/06/2009 11:10
Hi,
I have resolved the problem..
I did use the clone( true ) at first when I create a default template of
what I want to clone
then I clone() the template to be used by the user... and believe it or not
I actually forgot
to set the last clone to clone( true )
so this was my bad,
sorry
Peter
Hi all,
I have built the following switcher using jQuery:
http://pmck.net/jq-switcher/
It all works fine except for one small problem. If you click quickly
on a few tabs, sometimes more than one of the tabs will show. The code
for handling the click event is as follows:
$('#tab-list li
Hi jQuery,
when I clone a div that contains input fields with ajax then the cloned
version will not
do any ajaxing? is this normal?
btw: I do use clone( true )
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
Hi jQuery,
I'm using the $.ajax method and when this errors I react to the error event
within and dump
the XMLHttpRequest, textStatus, errorThrown to get an idea of what when
wrong... but
the most common message is parse error which doesn't help me that much.
what is going wrong is that on the
that the server outputs.. and this is what I wanted because all the
error information
about the php is there.
so basically just do an alert( XMLHttpRequest.responseText ) you will get a
dump of what
happend.
thanks,
Peter
On Sun, Jun 14, 2009 at 8:05 PM, MorningZ morni...@gmail.com wrote:
I also deal
to that $.ajax
any suggestions?
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
the user selects a date in the datepicker that
it will automatically update the 3 input tags?
anyone?
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
super.. that's a step in the right direction
thank you
On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé gustavon...@gmail.comwrote:
$count=$(.div_count);
var clone_count =!$count.('data') ?1:$cont.data('clone_count')+1;
$count.data('clone_count',clone_count);
2009/6/5 Peter Marino marino.pe
hi,
ok... now I tried it.. but it
seems that
$count.('data')
is not valid way of testing if data is there.. my javascript dies at that
point.
peter
On Fri, Jun 5, 2009 at 11:30 PM, Gustavo Salomé gustavon...@gmail.comwrote:
$count=$(.div_count);
var clone_count =!$count.('data') ?1
this a little simplier (compact)..
any suggestions?
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
of working on it with no result).
regards,
Peter
On Wed, Jun 3, 2009 at 8:39 AM, Dam jakob.a@gmail.com wrote:
Hi,
It's kind of odd what you do: namely input nested JSON data as URI
parameters in a GET request.
It doesn't make sense to URL encode your data that has a nested
object, so probably
Hi again,
did some testing by creating a valid URL parameter string and use that in
the data
and that actually did work (too my surprise).
if this is the case,.. then how does one transmit a json object?? and why is
there a dataType = json
in jQuery $.ajax??
regards,
Peter
On Wed, Jun 3, 2009
I wish I could tell you.. I don't have any way of dumping the return json
results.but I do know if I do a json.member I get a valid object
but json.member.name is invalid?
it would seem that this is the reason its not working but why?
server side:
?php
$arr = $_GET;
$myjson = json_encode($arr);
:) yea. working on that now
trying to create a way I can debug this on the server -
peter
On Tue, Jun 2, 2009 at 10:04 AM, Steven Yang kenshin...@gmail.com wrote:
sorry i am not too familiar with phpput i guess $arr or $_GET is all the
parameters you get from the GET request.
can you simply
Hi jQuery,
I'm very new to the json stuff (so warned)...
when I try the following:
var data =
{
member :
{
name : Peter Wraae Marino
}
}
$.ajax({
url: http://localhost/test/gui/ajax_member.php;,
type: GET,
data: data,
cache: false,
dataType: json,
success: function(msg){
alert( msg
Hi jQuery,
I'm trying to learn the json and ajax
I have with success sent data over to the server in json
now my question is how does one process this data on the server side?
client side:
var data =
{
member :
{
name : Donald Duck
}
}
$.ajax({
url:
hi,
yes i'm using php...
but the data is sent so the server side has to use $_GET
but what do I get?? $_GET??]
I assume you want me to $data = json_decode( $_GET[?] );
*
*
*peter*
On Mon, Jun 1, 2009 at 2:48 PM, geronimo3 jeroom...@gmail.com wrote:
if you are using PHP
expect.. why does the json.member.name not
work?
anyone... (been working 8 hours on this problem!)
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
Hi jQuery,
I've just found out the existence of json... and apparently there should be
a jquery json script somewhere..
where? think it's called jquery.json.js I would like to download it from the
site that created it.
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help
instead of partials?
regards,
Peter
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
Hi jQuery Group,
is it possible find a node backwards instead of forwards.
i.e.
div id=test0
div id=findme /
div
now I would like to do (remember find_reverse does not exist)
$(#findme).find_reverse(#test0);
is there any method to do a find_reverse???
regards,
Peter Wraae Marino
--
Power
Hi Caires,
something like that but it should continue up the parent until it finds it
or return null
peter
On Wed, May 27, 2009 at 2:21 PM, Caires Vinicius caire...@gmail.com wrote:
Do you want to use parent?
$(#findme).parent()
http://docs.jquery.com/Traversing/parent#expr
On Wed, May
hi,
did not see the parents() method before now.. it does look this is what I
need.. will check when I get home from work... thanks
peter
On Wed, May 27, 2009 at 4:49 PM, M.M. mario.maru...@gmail.com wrote:
On May 27, 2:19 pm, Peter Marino marino.pe...@gmail.com wrote:
Hi jQuery Group
to create
extra contacts too.
creating such a form has shown itself to be very complicated, perhaps there
is something like
this already created?
can anyone point me in the right direction?
regards,
Peter
On Mon, May 25, 2009 at 1:57 PM, Peter Marino marino.pe...@gmail.comwrote:
Hi all,
I'm still
Try this:
$(function(){
$('#DNnumber').keyup(function(){
if (parseInt($(this).val()) 40) {
$('#external').attr(checked, checked);
$('#internal').attr(checked, );
} else {
$('#external').attr(checked, );
$('#internal').attr(checked, checked);
}
});
});
on
not have this
problem.
any suggestions?
regards,
Crisium
Peter Wraae Marino
--
Power Tumbling - http://www.powertumbling.dk
OSG-Help - http://osghelp.com
$('#delete_item a').click(function(){
return (confirm('Are you sure?'));
});
This will only work if there is one item to delete on the page because
it uses an ID selector.
If you have multiple items, use a class selector instead.
on 18/05/2009 08:43 ocptime said::
Hi everyone,
How
Take a look at this example:
http://bjorsq.net/selector.html
on 18/05/2009 11:07 ocptime said::
Hi,
It's not working :).
How can i select using the jquery ul li selector?
Thanks
ocptime
On 18 May, 13:39, Peter Edwards p...@bjorsq.net wrote:
$('#delete_item a').click(function
You can avoid this conflict altogether (and reduce downloads
considerably) using slimbox or thickbox
http://www.digitalia.be/software/slimbox (lightbox clone for jQuery)
http://jquery.com/demo/thickbox/ (can use to achieve lightbox effect,
but much more versatile - can handle anything - not
There are a few ways to do this.
You can select by class, in which case you give a group of checkboxes
the same class
$(function(){
// attach a click event to each checkbox whose class is 'onechecked'
$(':checkbox.onechecked').click(function(){
// if the clicked checkbox is checked (no
No. $thisCell is initialized with a null value in the current scope.
- pw
On May 13, 11:12 pm, runrunforest craigco...@gmail.com wrote:
Hi,
I see this line in a plugin
var $thisCell, $tgt = $(event.target);
does that mean:
var $thisCell = $(event.target);
var $tgt = $(event.target);
[ ] is an array literal, like { } is an object literal.
var obj = json[0];
You shouldn't use eval on JSON. If you specify 'json' as your return
type, jQuery will safely eval valid JSON.
- pw
On May 12, 9:05 pm, sneaks deroacheee...@gmail.com wrote:
hi, in firebug my callback data(object) is
$.get('/endpoint/', '', function (html) {
$(html).find('.selector').appendTo('.target');
}), 'html');
On May 11, 3:23 pm, cstolwor...@gmail.com cstolwor...@gmail.com
wrote:
I have an ajax call that will be returning a large chunk of HTML. The
thing is that this HTML needs to go to several
Hi Roman,
You need to copy the reference to your link to a variable like this:
jQuery('#yt1').click(function(){
$(this).replaceWith(iApproving.../i);
var aObj = $(this);
jQuery.ajax({
'type':'POST',
'data':'id=205',
'dataType':'text',
'success':function(msg){
=456
id=doit), but I can't seem to get it to work, and I'm not sure this is the
right approach...
What would be the jquery-like best way to do this?
Thanks!
Peter
--
me: http://petervandijck.com
blog: http://poorbuthappy.com/ease/
global UX consulting: http://290s.com
free travel guides: http
Are you using joomla to load jQuery? or are you wringin script tags in
some sort of template?
I came across this:
http://www.packtpub.com/article/using-javascript-effects-with-joomla
which seems to imply joomla can handle you script inclusion.
hope this helps
on 23/03/2009 11:41 Andy789
in an input field. Changing the field to
textarea seems to solve the problem.
[1]: http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
Regards,
Peter
Have you tried the jQuery UI mailing list?
Why not create draggable and droppable at the same time?
The way I understand it, a draggable is created so it can be dropped on
a droppable, so the two are linked and it makes sense to create them at
the same time.
Or do you need to create hundreds
Peter
someone can explain that in better detail.
Anyway, in modern browsers most of the work is being delegated to the
native querySelectorAll function, as so selector performance will
become more of a browser makers' concern.
- ricardo
On Feb 23, 1:08 pm, Peter Bengtsson pete...@gmail.com
I watched the John Resig presentation too and learned that CSS
selectors always work from right to left.
That would mean that doing this::
$('#foo p')
Would extract all p tags and from that list subselect those who
belong to #foo. Suppose you have 1000 p tags of them only 100 are
inside #foo
I don't know why IE does this but you shouldn't need to re-write the
href attribute anyway - I'm assuming you attach a click event to the
buttons to load content, so just return false from the click event
handler and the link won't be followed - you can leave the href
attribute intact.
for me in Safari 3.2.1 with jQuery 1.3.1 (did
not test 1.3.0) in my project, but other stuff which worked in 1.2.6
simply selects the wrong elements
$(#id).find(.class) fails
$(.class, DOMElement) fails
The exact same code works in Firefox, though.
--
Markus Peter - w...@spin.de - http://www.spin
the event order is mousedown-mouseup-click
the 'dragend' event is triggered by mouseup, which happens before the
click event, so if you put logic in your function dragged() to prevent
clicked() from doing whatever it does, then the click event which is
triggered at the end of a drag should be
Try this:
$(.cartSummaryItem).each(function(){
$(this).html($(this).html().replace(/,[^]*/, ' '));
});
It takes the html content of the cartSummaryItem table cell, and
replaces everything from the comma to the start of the View Cart link
with a space, then resets the contents of the table
I need to remove the first image from my slide show when i use $
('#overlay').remove(); the image is removed, but an empty space
appears in the slideshow.
Is there a removeSlide method or something similar?
Peter
not always patch it
myself, unfortunately it has been ignored so far.
--
Markus Peter - w...@spin.de - http://www.spin-ag.de/ - http://www.spin.de/
SPiN AG, Bischof-von-Henle-Str. 2b, 93051 Regensburg, HRB 6295
Regensburg
Aufsichtsratsvors.: Dr. Christian Kirnberger, Vorstände: F. Rott, P
a pass-through... it seems to stop the click in
its tracks. Is this so?
Peter
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
feed that you use in this example. I would like to hand craft a simple
RSS file.
Thanks for your help.
Peter
Hi Aaron,
The following code should help:
$(document).ready(function(){
$('area').each(function(){
$(this).attr(href, #);
$(this).click(function(){
$('#ajaxresult').load('map.php', {'state':$(this).attr('alt')});
return false;
});
});
});
It looks like you have a rogue parenthesis to me -
$.post($(this).attr(href)) - the last closing parenthesis completes
the $.post call, so your callback function will not fire.
on 11/09/2008 21:49 Tom Shafer said::
i am trying to use data i am getting back from $.post but I am not
able to
just use data[myCategory]
myCategory = cheese
data.cheese = brie;
data[myCategory] == brie
Brad wrote:
var myCategory;
If (eating cheese)
myCategory = data.cheese;
If (eating bread)
myCategory = data.bread;
...
$.each(myCategory, function(i, item)
{ do a ton of
1 - 100 of 166 matches
Mail list logo