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
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
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
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
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:
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
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( )
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,
8 matches
Mail list logo