[Proto-Scripty] Re: Dimensions of dynamic content

2009-02-16 Thread Jason Frisvold
Walter Lee Davis wrote: > Aha. Try using onComplete. onSuccess fires when the Ajax event returns > success (naturally) but before you've done anything in the local DOM > with your new content. It's the Ajax equivalent of a 200 header from > the browser. All it means is "everything worked, no

[Proto-Scripty] Re: Dimensions of dynamic content

2009-02-16 Thread Jason Frisvold
Jason Frisvold wrote: > I actually tried onSuccess before, and had the same results. Is this > the correct syntax? onComplete makes this work properly. So, I wonder, if I properly check for failures, is it ok to use onComplete for this? -- --- Jason Frisvold xenopha...

[Proto-Scripty] Re: Dimensions of dynamic content

2009-02-16 Thread Walter Lee Davis
Aha. Try using onComplete. onSuccess fires when the Ajax event returns success (naturally) but before you've done anything in the local DOM with your new content. It's the Ajax equivalent of a 200 header from the browser. All it means is "everything worked, now your content is coming!" Wa

[Proto-Scripty] Re: Dimensions of dynamic content

2009-02-16 Thread Jason Frisvold
T.J. Crowder wrote: > Hi, > > Ajax.Updater is (by default) *asynchronous*, so your code doing the > resizing runs before the request completes. Use an onSuccess handler > [1] instead. (Don't just make the request synchronous, it locks up > the browser UI.) You might also find the "bulletproof

[Proto-Scripty] Re: Dimensions of dynamic content

2009-02-16 Thread T.J. Crowder
Hi, Ajax.Updater is (by default) *asynchronous*, so your code doing the resizing runs before the request completes. Use an onSuccess handler [1] instead. (Don't just make the request synchronous, it locks up the browser UI.) You might also find the "bulletproof ajax requests" page[2] on the un