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

Re: Popup Windows by Ronx

Ronx
Sat Jul 19 03:28:54 CDT 2008

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.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Earl Kelly" <newsgroups@greenehazel.com> wrote in message
news:uGK$yOS6IHA.4560@TK2MSFTNGP04.phx.gbl:

> 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


Re: Popup Windows by Stefan

Stefan
Sat Jul 19 04:07:56 CDT 2008

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!" (-;
_____________________________________________


"Earl Kelly" <newsgroups@greenehazel.com> wrote in message news:uGK$yOS6IHA.4560@TK2MSFTNGP04.phx.gbl...
|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
|
|



Re: Popup Windows by Jens

Jens
Sat Jul 19 07:38:31 CDT 2008

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.

On Sat, 19 Jul 2008 05:07:56 -0400, "Stefan B Rusynko"
<sbr_enjoy@hotmail.com> wrote:

>Remove the close from the submit button
>- instead add the event to the form tag
>
><form action="your action" method="POST" onsubmit="self.close();>

Re: Popup Windows by Earl

Earl
Mon Jul 21 12:41:15 CDT 2008

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


"Ronx" <ronx917@hotmail.com> wrote in message
news:eL119lX6IHA.1192@TK2MSFTNGP05.phx.gbl...
>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.
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "Earl Kelly" <newsgroups@greenehazel.com> wrote in message
> news:uGK$yOS6IHA.4560@TK2MSFTNGP04.phx.gbl:
>
>> 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
>
>