[jQuery] Re: fadeIn something from JSON

2008-12-09 Thread botondus
Well if you want to fade in something it has to be hidden first. If the example with hide() doesn't work, just hide it straight from html. $.getJSON(urlForDescription, function(data) { $div = $("" + data + ""); $element.after($div).fadeIn(); }); On Dec 9, 12:06

[jQuery] Re: problem with $.JSON request

2008-12-08 Thread botondus
A possible (but not the most efficient) solution would be something like this: function getAllWhatever() { var result = this.getAllRecords(); var record = new Array(); var test = 13; alert(test); while(result.isValidRow()) { record = someN

[jQuery] Re: problem with $.JSON request

2008-12-08 Thread botondus
The first example ricardo gave you is not ok. Use the second example. Because "http://test.url/?callback=?";, gets called, but javascript doesn't wait to get a response from that request (the first A from AJAX is from Asynchronous!). It goes forward and calls it again and again and again quickly w