You are here: Re: Closing window « PHP Programming Language « IT news, forums, messages
Re: Closing window

Posted by d on 11/06/85 11:40

"Sheldon Glickler" <sheldonlg@bellsouth.net> wrote in message
news:6XHKf.18061$UD1.9984@bignews2.bellsouth.net...
> Here is a problem I encounter often but haven't solved.
>
> In a form I have a submit button. When clicked, I want to do some
> processing so I check with the isset($_POST['the_button_name']). (I keep
> all my code above the html code). Now, once I have done that processing,
> I want the window to disappear. Is it as simple as adding an on_click
> event to close the window? Will the processing then still take place?

If the window was not opened with javascript, you might get a warning if you
try to close it.

The best (only?) way to close it in this situation is to spit out some
javascript after you process the $_POST:

<script type="text/javascript">
window.close();
</script>

and then exit your script. Your window will then close after the processing
has been done.

> Shelly

dave
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация