Log In · Register

 
 
Closed TopicStart new topic
javascript/php question, help from people who know this
ryanoman
post Dec 15 2005, 08:26 PM
Post #1


=]
*****

Group: Member
Posts: 712
Joined: May 2004
Member No: 15,626



Hey... I'm using a php script... it's a simple script... if someone goes to, or clicks the URL of the script, then it processes the information on to another file. Is there anyway possible so that:

1. Go to /../file.php
2. Gathers information and transmits to /../otherfile.php
3. Closes window when it's finished.

Would I have to fit a window.close() somewhere in the script?


Edit:

I added
CODE
<body onLoad="setTimeout(window.close, 3000)">
To the script but it still won't close.
 
Phreak
post Dec 16 2005, 06:13 PM
Post #2


Member
**

Group: Member
Posts: 22
Joined: Sep 2005
Member No: 231,011



Maybe you should include it once? Save it externally and than include it once?

Or, you could tell it, once it is done doing what it needs to, to close out the window.
 
ryanoman
post Dec 17 2005, 10:10 PM
Post #3


=]
*****

Group: Member
Posts: 712
Joined: May 2004
Member No: 15,626



QUOTE(Phreak @ Dec 16 2005, 6:13 PM)
Or, you could tell it, once it is done doing what it needs to, to close out the window.
*


Do you know how I could do that?
 
Phreak
post Dec 18 2005, 09:49 PM
Post #4


Member
**

Group: Member
Posts: 22
Joined: Sep 2005
Member No: 231,011



QUOTE(ryanoman @ Dec 17 2005, 10:10 PM)
Do you know how I could do that?
*

Sorry, no. I've just started in PHP

You could also have the script do it in the background on the page.
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: