CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How do I close a window ?

Print topic Send  topic

Author Message
chris

Posts: 16
Posted: 06/25/2004, 7:38 AM

WinXP Prof /IIS/PHP/MySQL

I have created a small CCS application that will accept a link, picks up an image, and send it via mail as a attachment.

I call this program from a web-page (creates a new small window); enter the e-mail address (only the first time, the second time it retrieves it from a session-variable) and push a button, to send the mail.
What I want is, that the program (CCS php-program) closes it self after sending the mail; how can I do that with CCS ? Now I have to close the window manually, by pressing on the right top corner X !

thx,

Chris
View profile  Send private message
peterr


Posts: 5971
Posted: 06/25/2004, 11:31 AM

You can use "window.close();" JavaScript for this.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 06/25/2004, 11:48 AM

Actually the simplest way could be to just modify the <body> tag in the HTML as follows:
<body onload="window.close();">
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

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.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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