... i tried this, according to the doc it should work, yet it does not do what
i want: display a "wait" modal screen on page unload, and hide it when the
page is loaded. what am i doing wrong?
<script type="text/javascript">
$(function() {
// element for the DOM test
var messageElement = $('#domMessage')[0];
var blockMessage = '<p><strong>Loading ... Please wait.</strong><img
src="<?php echo WWWROOT ?>_img/loader.gif" alt=""/></p>';
$.blockUI(blockMessage);
$("html").load( function() { $.unblockUI(); } );
});
</script>
Thank you for your help,
Alexandre
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre
Plennevaux
Sent: mercredi 31 janvier 2007 12:42
To: [email protected]
Subject: [jQuery] blockUI/unblockUI: onUnload
Importance: High
hello,
i would like to know how to display the blockUI modal message when the page is
loading, and hide it when it is loaded.
is there some jquery function that can execute blockUI before $(document).ready
?
thank you,
Alex
ps: blockui: HYPERLINK
"http://malsup.com/jquery/block/"http://malsup.com/jquery/block/
--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.441 / Base de données virus: 268.17.17/661 - Date: 30/01/2007 23:30
--
Ce message Envoi est certifié sans virus connu.
Analyse effectuée par AVG.
Version: 7.5.441 / Base de données virus: 268.17.17/661 - Date: 30/01/2007 23:30
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/