Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

hour glass on page load

$
0
0

approach 1:

function executeFunctionWithCursor(){

alert("test");

setTimeout("document.body.style.cursor = 'wait'", 1000);

alert("hi")
}
Wrote this code in JS webresource and
 calling this function on onload of a form.  Getting test and hi alerts but i am not able to see the hour glass.

Plz tell me where I am missing.

My requirement is to show the hour glass during loading of a page..Once the got loaded  cursor should come again to default.

approach 2:

<html><head>
<script src="ClientGlobalContext.js.aspx"></script>
<script src="new_ jquery_1.9.1.min" type="text/javascript"></script>
<script type="text/javascript">
function unloading()
{
document.body.style.cursor = 'wait';
}

</script>

<meta charset="utf-8"></head>

<body onbeforeunload="unloading();" onunload="unloading();"></body></html>

Wrote this in html webresource, but while publishing body is disappearing and replacing by <body><br></body>

why this is happening?


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>