J
jack-e
Hi there,
I have a form with 3 textboxes, each with a server side validiation
control. When the form submits I am wanting to display a message like
'Processing request.. please wait.' so they don't click the button
again.
I thought I would do this with some javascript. When the user clicks
the button it calls a funtions to display the messge which is inside a
DIV. This works fine but if the page is invalid the message is still
displayed. Can I somehow validate the page client-side??
Code so far ->
Server Side:
SubmitImageButton.Attributes.Add("onclick", _
"internetSelect();")
Client-Side:
******************
<script type="text/javascript">
function internetSelect() {
document.getElementById("ProcessDiv").style.visibility =
"visible";
}
</script>
*******************
<** textboxes code ****>
<table>
<tr>
<td align="right"><asp:imagebutton id="SubmitImageButton"
ImageUrl="~/images/submit-button.jpg" "server"></asp:imagebutton>
</td>
<td align="left">
<div id="ProcessDiv" style="VISIBILITY: hidden">Processing request..
Please wait.. </div>
</td>
</tr>
</table>
******************
Thanks in advance!
I have a form with 3 textboxes, each with a server side validiation
control. When the form submits I am wanting to display a message like
'Processing request.. please wait.' so they don't click the button
again.
I thought I would do this with some javascript. When the user clicks
the button it calls a funtions to display the messge which is inside a
DIV. This works fine but if the page is invalid the message is still
displayed. Can I somehow validate the page client-side??
Code so far ->
Server Side:
SubmitImageButton.Attributes.Add("onclick", _
"internetSelect();")
Client-Side:
******************
<script type="text/javascript">
function internetSelect() {
document.getElementById("ProcessDiv").style.visibility =
"visible";
}
</script>
*******************
<** textboxes code ****>
<table>
<tr>
<td align="right"><asp:imagebutton id="SubmitImageButton"
ImageUrl="~/images/submit-button.jpg" "server"></asp:imagebutton>
</td>
<td align="left">
<div id="ProcessDiv" style="VISIBILITY: hidden">Processing request..
Please wait.. </div>
</td>
</tr>
</table>
******************
Thanks in advance!