Popup Windows

E

Earl Kelly

I have a popup form that request information from another page, once the
form is updated and the submit button is pressed I would like the page to
autoclose. I was using a javascript behavior after the submit but that was
closing the form too quickly and not allowing the form to update the
database. I have tried several commands including:

<input type="submit" value="Submit" name="B1"
onclick="javascript:window.close();">
<input type="submit" value="Submit" name="B1" onclick="self.close();">

Any assitance is greatly appreciated

--
Earl Kelly, IT Systems Manager
Greene-Hazel & Associates
Jacksonville, FL
50 users, TAM 9.2, @vantage 5.3
XP Pro Workstations & W2K Servers
 
R

Ronx

I would place the autoclose script on the form confirmation page or form
handler - this would update the database, thank the customer then close
the window after 5 or 10 seconds.
 
S

Stefan B Rusynko

Remove the close from the submit button
- instead add the event to the form tag

<form action="your action" method="POST" onsubmit="self.close();>
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I have a popup form that request information from another page, once the
| form is updated and the submit button is pressed I would like the page to
| autoclose. I was using a javascript behavior after the submit but that was
| closing the form too quickly and not allowing the form to update the
| database. I have tried several commands including:
|
| <input type="submit" value="Submit" name="B1"
| onclick="javascript:window.close();">
| <input type="submit" value="Submit" name="B1" onclick="self.close();">
|
| Any assitance is greatly appreciated
|
| --
| Earl Kelly, IT Systems Manager
| Greene-Hazel & Associates
| Jacksonville, FL
| 50 users, TAM 9.2, @vantage 5.3
| XP Pro Workstations & W2K Servers
|
|
 
J

Jens Peter Karlsen

Not a good idea. onsubmit is fired before the formdata is saved. You
risk that nothing will save but the window simply closes.
Like Ronx wrote place it on the confirmation page instead.

Regards Jens Peter Karlsen.
 
E

Earl Kelly

Ronx,

Thanks for your help...believe it or not I had just come up with that
solution about an hour before I read your post. Works pretty well so far,
and I just send all of my popup pages to that confirmation page upon submit.
--
Earl Kelly, IT Systems Manager
Greene-Hazel & Associates
Jacksonville, FL
50 users, TAM 9.2, @vantage 5.3
XP Pro Workstations & W2K Servers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top