[jQuery] Re: DOM changes takes effects only after function is done processing

2009-11-17 Thread nowotny
You'll have to glue the URLs together... Apparently I'm not allowed to post links... :/

Re: [jQuery] Re: DOM changes takes effects only after function is done processing

2009-11-17 Thread nowotny
On 17 Lis, 10:44, Michael Geary wrote: > Here is how this really works: > > 1. Changes you make to the DOM always take effect immediately. If you make > any change to the DOM and then immediately follow that with code that looks > for your change, that code will indeed see the change. For example:

Re: [jQuery] Re: DOM changes takes effects only after function is done processing

2009-11-17 Thread Michael Geary
Here is how this really works: 1. Changes you make to the DOM always take effect immediately. If you make any change to the DOM and then immediately follow that with code that looks for your change, that code will indeed see the change. For example: $('#mydiv').html( 'hello' ); alert( $('

Re: [jQuery] Re: DOM changes takes effects only after function is done processing

2009-11-16 Thread Michel Belleville
Well, if you're aware of the side-effects, that's fine by me. Still it's a bit like using an h-bomb to treat cancer patients, sure it's likely to cure it 100% of the times, as long as you don't mind your patient dying in the process. Michel Belleville 2009/11/16 nowotny > On 16 Lis, 11:40, Mi

[jQuery] Re: DOM changes takes effects only after function is done processing

2009-11-16 Thread nowotny
On 16 Lis, 11:40, Michel Belleville wrote: > Well for a start I wouldn't use a this kind of pause() trick if I were you, > it's pretty brutal suff looping along until time has passed will likely > freeze your interface and that's a bad thing. Like I said... it's only a stand in for the ajax call t