RE: [PHP] OnUNload Scripts

2001-10-24 Thread Martin Towell

From what I can tell, the only way you can execute a PHP script is to have
the browser request it. This means using the same window that the document
is being unloaded in, or opening a new window.

You could open a new window, give focus to the current window, and in the
new window, have it close itself after it's finished processing.

Hope this helps.
Martin

-Original Message-
From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OnUNload Scripts


Hi everyone,

I can use javascripts onunload to run PHP file with a new window.
Is there anyway i can run PHP script file on ONUNLOAD with out opening a new
window ( in the back ground).

Any one's help will be greatly appreciated.

Best regards,
Hasan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



RE: [PHP] OnUNload Scripts

2001-10-24 Thread Jason G.

It may be possible to do something of the following:

I know that on rollovers, Javascript can preload the images needed to 
rollover to...  Hmm...  Maybe you could have javascript load an image 
during the unload event with the image's src pointing to a php script...

-Jason Garber



At 04:51 PM 10/24/2001 +1000, Martin Towell wrote:
 From what I can tell, the only way you can execute a PHP script is to have
the browser request it. This means using the same window that the document
is being unloaded in, or opening a new window.

You could open a new window, give focus to the current window, and in the
new window, have it close itself after it's finished processing.

Hope this helps.
Martin

-Original Message-
From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] OnUNload Scripts


Hi everyone,

I can use javascripts onunload to run PHP file with a new window.
Is there anyway i can run PHP script file on ONUNLOAD with out opening a new
window ( in the back ground).

Any one's help will be greatly appreciated.

Best regards,
Hasan



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OnUNload Scripts

2001-10-24 Thread Mak

It may also be possible to use document.location.href (in Javascript) to
change the location to the desired PHP file which you want to run, and then
at the end of that PHP file, go to the page which the user originally wanted
to go (if any)...

I'm not very sure if that works though. Hope it helps.

Mak

- Original Message -
From: Jason G. [EMAIL PROTECTED]
To: Martin Towell [EMAIL PROTECTED]; 'Impex Holidays Maldives /
Hasan' [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 3:37 PM
Subject: RE: [PHP] OnUNload Scripts


 It may be possible to do something of the following:

 I know that on rollovers, Javascript can preload the images needed to
 rollover to...  Hmm...  Maybe you could have javascript load an image
 during the unload event with the image's src pointing to a php script...

 -Jason Garber



 At 04:51 PM 10/24/2001 +1000, Martin Towell wrote:
  From what I can tell, the only way you can execute a PHP script is to
have
 the browser request it. This means using the same window that the
document
 is being unloaded in, or opening a new window.
 
 You could open a new window, give focus to the current window, and in the
 new window, have it close itself after it's finished processing.
 
 Hope this helps.
 Martin
 
 -Original Message-
 From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 24, 2001 4:16 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] OnUNload Scripts
 
 
 Hi everyone,
 
 I can use javascripts onunload to run PHP file with a new window.
 Is there anyway i can run PHP script file on ONUNLOAD with out opening a
new
 window ( in the back ground).
 
 Any one's help will be greatly appreciated.
 
 Best regards,
 Hasan
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OnUNload Scripts

2001-10-24 Thread Kodrik

 You could open a new window, give focus to the current window, and in the
 new window, have it close itself after it's finished processing.

An invisible frame is the easiest:
frame rows=100%, *
 framset name='main' src='src.php'
 frameset name='invisibleframe' src='background.php'
/frameset

then javascript can send orders to php through the invisible frame.

Flash can also talk to php without reloading which allows for some cool stuff.
Finally, Java is the hardest solution but still a solution




 -Original Message-

 From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]

 Sent: Wednesday, October 24, 2001 4:16 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] OnUNload Scripts
 
 
 Hi everyone,
 
 I can use javascripts onunload to run PHP file with a new window.
 Is there anyway i can run PHP script file on ONUNLOAD with out opening a
  new window ( in the back ground).
 
 Any one's help will be greatly appreciated.
 
 Best regards,
 Hasan
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OnUNload Scripts

2001-10-24 Thread Mak

Yes I agree. Flash has great integration with PHP and that makes it much
easier for communication between them, eg. passing around variables.

- Original Message -
From: Kodrik [EMAIL PROTECTED]
To: Jason G. [EMAIL PROTECTED]; Martin Towell [EMAIL PROTECTED];
'Impex Holidays Maldives / Hasan' [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 1:40 PM
Subject: Re: [PHP] OnUNload Scripts


  You could open a new window, give focus to the current window, and in
the
  new window, have it close itself after it's finished processing.

 An invisible frame is the easiest:
 frame rows=100%, *
  framset name='main' src='src.php'
  frameset name='invisibleframe' src='background.php'
 /frameset

 then javascript can send orders to php through the invisible frame.

 Flash can also talk to php without reloading which allows for some cool
stuff.
 Finally, Java is the hardest solution but still a solution




  -Original Message-
 
  From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
 
  Sent: Wednesday, October 24, 2001 4:16 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] OnUNload Scripts
  
  
  Hi everyone,
  
  I can use javascripts onunload to run PHP file with a new window.
  Is there anyway i can run PHP script file on ONUNLOAD with out opening
a
   new window ( in the back ground).
  
  Any one's help will be greatly appreciated.
  
  Best regards,
  Hasan
  
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
[EMAIL PROTECTED]

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] OnUNload Scripts

2001-10-24 Thread _lallous

This can be done...but what if the user closes the whole browser?
the frame won't work cause it will also be closed i guess!

The popup window will assure that in all cases it will be poped up.

Kodrik [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  You could open a new window, give focus to the current window, and in
the
  new window, have it close itself after it's finished processing.

 An invisible frame is the easiest:
 frame rows=100%, *
  framset name='main' src='src.php'
  frameset name='invisibleframe' src='background.php'
 /frameset

 then javascript can send orders to php through the invisible frame.

 Flash can also talk to php without reloading which allows for some cool
stuff.
 Finally, Java is the hardest solution but still a solution




  -Original Message-
 
  From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]]
 
  Sent: Wednesday, October 24, 2001 4:16 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] OnUNload Scripts
  
  
  Hi everyone,
  
  I can use javascripts onunload to run PHP file with a new window.
  Is there anyway i can run PHP script file on ONUNLOAD with out opening
a
   new window ( in the back ground).
  
  Any one's help will be greatly appreciated.
  
  Best regards,
  Hasan
  
  
  
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail:
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]