[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-31 Thread MorningZ
Wouldn't a better version of the code be $.blockUI(); searchLocDep( ); searchLocArr( ); searchLocInt( ... ); setTimeout(function() { $.unblockUI(); }, 200); That way all the search stuff gets run asap? On Oct 30, 7:13 pm, Mike Alsup [EMAIL PROTECTED] wrote: What was

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-31 Thread Mike Alsup
Wouldn't a better version of the code be $.blockUI(); searchLocDep( ); searchLocArr(   ); searchLocInt(  ... ); setTimeout(function() {     $.unblockUI(); }, 200); That way all the search stuff gets run asap? No. You need to give the browser a chance to render the DOM

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-31 Thread MorningZ
Hmmm... what if it takes longer than 200 milliseconds (i know the common answer would be wait longer then) i dunno, the whole framework/flow of that guys code just seems unreliable/unstable On Oct 31, 11:41 am, Mike Alsup [EMAIL PROTECTED] wrote: Wouldn't a better version of the code

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread MorningZ
i don't understand you have: $.blockUI({ message: 'h2 style=margin-top:10px;Veuillez patienter.../h2' }); searchLocDep( ) searchLocArr( ) searchLocInt( ... ) $.unblockUI(); Why are you expecting to see the block? you call block then unblock and it's happening almost immediately

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007
These functions take a specific amount of time to be executed: searchLocDep( ) searchLocArr( ) searchLocInt( ... ) You can see it in Firefox, the message will appear for like 5 seconds, I don't want the user to interact with the website in between this interval. MorningZ wrote:

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread Mike Alsup
On Oct 30, 12:47 pm, debussy007 [EMAIL PROTECTED] wrote: These functions take a specific amount of time to be executed: searchLocDep( ) searchLocArr(   ) searchLocInt(  ... ) You can see it in Firefox, the message will appear for like 5 seconds, I don't want the user to interact

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread debussy007
Thank you !! I tried the following : setTimeout(function() { $.blockUI(); searchLocDep( ) searchLocArr( ) searchLocInt( ... ) $.unblockUI(); }, 200); but it didn't help, but your suggestion: $.blockUI(); setTimeout(function() { searchLocDep( )

[jQuery] Re: Block UI bugs in IE/Safari when used in .ready()

2008-10-30 Thread Mike Alsup
What was wrong actually ? Why my version with setTimeout didn't work ? Seems pretty basic, block UI, execute some isntructions, unblock. The point of using setTImeout is the give the browser a chance to render the new DOM updates before diving into process-intensive work. So you block first,