CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Target _blank

Print topic Send  topic

Author Message
Jan K. van Dalen
Posted: 02/13/2006, 8:55 AM

Hi Everyone,

I have defined some of the targets as _blank (specially for update forms).
Now, when I click on "submit" I'll like to save/change/delete and then close
the form. Any idea on how to do this?

dragoon


Posts: 173
Posted: 02/13/2006, 11:20 AM

you can close pages only if they are opened by Javascript code.

<html>  
<body>  
<form action="" method="POST">  
<button onclick="window.close()">click me!</button>  
</form>  
</body>  
</html>

but this will work:
newwindow = window.open("");  
...  
newwindow.close ();
View profile  Send private message
samaresh
Posted: 03/21/2006, 1:52 AM

Quote Jan K. van Dalen:
Hi Everyone,

I have defined some of the targets as _blank (specially for update forms).
Now, when I click on "submit" I'll like to save/change/delete and then close
the form. Any idea on how to do this?



Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.