[jQuery] Re: jQuery and JSON - newbie!

2008-05-02 Thread Dave Probert
Glad I could help :) Cheers, Dave On May 2, 6:35 pm, eid <[EMAIL PROTECTED]> wrote: > Hi Dave, > > it worked great with a little bit of modification. > > Thank you very, very much! And I even learned something new today > then :) > > Thanks again > eid > > Dave Probert wrote: > > Hi eid, > > > I

[jQuery] Re: jQuery and JSON - newbie!

2008-05-02 Thread eid
Hi Dave, it worked great with a little bit of modification. Thank you very, very much! And I even learned something new today then :) Thanks again eid Dave Probert wrote: > Hi eid, > > I've taken a look at what you are trying to do and I think there are > two aspects that need to be 'corrected

[jQuery] Re: jQuery and JSON - newbie!

2008-05-02 Thread Dave Probert
Hi eid, I've taken a look at what you are trying to do and I think there are two aspects that need to be 'corrected'. 1.) In the JSON, there is no need for an array of items - remove the [ & ] after 'items'. items is then an object with elements called 'lanceOfMitraDivinity', 'wrathOfMitraDivi

[jQuery] Re: jQuery and JSON - newbie!

2008-05-01 Thread eid
Okay I tried to do what you said. This is my JSON file: http://pastebin.com/m616d0550 and this is my js file: $(document).ready(function() { $.getJSON('featsCalculator/priestofmitra.js', function(data) { $('.featButton').hover(function() { if(data.

[jQuery] Re: jQuery and JSON - newbie!

2008-04-30 Thread jquertil
assuming your hover links also have a class name like "tip", and your JSON is set like a proper variable named, say, "allTolltips", it probably will look something like this: $('.tip').hover( function(){ if( allTooltips.items.id) == $(this).attr('id') ) {showToolTip();} }, function