"Devika" <de*********@gmail.comwrote in
news:11**********************@f16g2000cwb.googlegr oups.com:
Hi,
I am working on online recharge module. Everything is in place but
when you click on submit it does not notify user that the request is
getting processed and he needs to wait for couple of seconds. I need
to add a popup window displaying this message. Can anyone suggest me
how to do this? I just need to open 1 window , sense some event in
parent window and then close the popup window..Kindly please help
I would lose the pop-up window entirely, and instead, change/disable
your submit button.
For example, give you submit button an id of "submitButton".
Then, in your <formtag, add "onsubmit="document.getElementById
('submitButton').value='please wait...';document.getElementById
('submitButton).disabled=true"
So...
<form action="xxxxxx" method="post" onsubmit="document.getElementById
('submitButton').value='please wait...';document.getElementById
('submitButton).disabled=true">
<input type="submit" value="Submit me!" id="submitButton" />
</form>