By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,341 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Popup window question

P: n/a
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 truly apppreciate your help

D

Nov 23 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"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>
Nov 23 '06 #2

P: n/a
Thansk you sooo much . It helped !
Good Man wrote:
"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>
Nov 29 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.