[jQuery] Re: question about getJSON, objects and/or scope - confused

2009-05-21 Thread illovich
I just googled around, hacked at my function, etc. For some reason I ended up trying this solution (i.e. setting thisStory inside the getJSON callback instead of using the thisStory = getJSON() way., and it works ALMOST: //

[jQuery] Re: question about getJSON, objects and/or scope - confused

2009-05-20 Thread illovich
Josh, thanks for your response - it helped clear up some of my problems when I moved the var thisStory = $.getJSON("javascript/ test.js", function(json){etc.}); out of the $(document).ready(); block. Now at least the document.write is executing on the page... But it's being written out as "undefi

[jQuery] question about getJSON, objects and/or scope - confused

2009-05-19 Thread illovich
Hi, I'm working on a page where graphics/content get loaded via server side stuff and decided to try to use JSON to send the data. But I'm having trouble with converting the JSON to a javascript object when I use an external file. This works: http://dev.illovich.com/storigraphi5.html ==

[jQuery] Re: jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread illovich
I also tried $(function(){ $('.frame3').click(function(){ $('#story').animate({ opacity: 'hide'}, 'fast').css ('background-position' , '-0px -302px').animate({ opacity: 'show'}, 'fast');

[jQuery] jquery beginner question: defer $('x').text('change') until after $('x').animate()

2009-05-14 Thread illovich
Hi, I'm trying to get a basic sequence of events to work: 1) User clicks a link 2) two divs (not containing the link) fade out 3) the contents of one div's text and the background properties of the other get changed 4) both divs fade in again. I've tried to effect this a couple of different way