Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to show the please wait or loading msg to user.... before the popup will open
JavaScript
<INPUT class=MyButton name=AddVal onclick=Javascript:OnAddVal() type=button value="Address Validation"  style="width: 114; height: 21" tabindex="404">

In javascript
JavaScript
function OnAddVal()
{
        if (confirm("Are you sure you want to perform Address Validation?"))
              {
            window.showModalDialog("XMLValidator.aspx?ValType=AddVal&AppNo="+document.getElementById('AppNo').value+"","","height=400,width=500,toolbar=0,menubar=0,scrollbars=1,resizable=1");
              }
        else
        {        }
}

Now in aspx page XMLValidator.aspx

What should I do in XMLValidator.aspx?
Posted
v5
Comments
Ed Nutting 18-Aug-12 21:02pm    
This looks like an odd or at least outdated way of doing things... Have you considered using jQuery to show a loading message and then send an AJAX request and when you get the response, closing the loading message and showing the result?

Ed

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900