Hi,
I'm building an application with VS2005 using Visual Basic .NET and asp.net. I'm testing the code with IE.
I need the cursor to change when I click on a button until some process is completed(until postback)
It seems pretty straightfoward, but I probably have something wrong. Here is what I do:
in vb.net
Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait';")
this line is in the page_load function.
When I change document.body.style.cursor = 'wait';
to alert("boo!"); , I get the alert. This means that the javascript function is correctly added to the button.
Thanks for you help.
I'm building an application with VS2005 using Visual Basic .NET and asp.net. I'm testing the code with IE.
I need the cursor to change when I click on a button until some process is completed(until postback)
It seems pretty straightfoward, but I probably have something wrong. Here is what I do:
in vb.net
Me.btnRecherche.Attributes.Add("onclick", "document.body.style.cursor = 'wait';")
this line is in the page_load function.
When I change document.body.style.cursor = 'wait';
to alert("boo!"); , I get the alert. This means that the javascript function is correctly added to the button.
Thanks for you help.