More on Help on JavaScript Windows with PHP

From: Date: Fri, 28 Dec 2001 22:45:06 +0000
Subject: More on Help on JavaScript Windows with PHP
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-78984@lists.php.net to get a copy of this message
Hello Bogdan, Before anything, thank you! I've installed Netscape 6.2 on a Linux box and it works just like MS IE. Just like I told you. The unload event does not work or is called by either netscape 4.x or konqueror. But it is called by Netscape 6.2 and MS IE 5.x & 6.x. I think that JS implementations on those browsers might be quite different. I wonder how to make the onunload event work on Netscape 4.x and Konqueror. That's why I thought creating a captureEvents. Also a good thing would be creating a popup window without the close (X) and minimize ( _ ) icons since I can only create it without the resize and maximize buttons. Do you know how to create a java popup window without the close icon? If it is possible the problem is solved since the only way a user could close it is by clicking on the link. Thank you, Carlos Fernando Scheidecker Antunes. ----- Original Message ----- From: "Bogdan Stancescu" <mgv@fx.ro> To: "Carlos Fernando Scheidecker Antunes" <nando@antunes.eti.br> Cc: "PHP-GENERAL" <PHP-GENERAL@lists.php.net> Sent: Friday, December 28, 2001 5:31 PM Subject: Re: [PHP] Part II: Help on JavaScript Windows with PHP The way it looks to me, you do both the window opening sequence and the closing procedure twice: - Window opening: you specify window options (toolbar, status bar etc) once in the window.open() call and once in the actual window code; - Window closing: you perform the same actions once upon clicking on "Close e Update" and once upon actual window closing (via onUnload()). Try implementing both procedures only once in a way that they're ran by both types of browsers. AFAIK you don't need to implement any kind of captureEvents, but I may be wrong about it. Only now did I read your final paragraph: I think you'd better leave the onUnload() in place and only window.close() in the link, which should trigger onUnload(). Hope this works with NS 4.x! I don't have any clue why closing the pop-up via Windows controls both doesn't trigger onUnload and reloads the parent window -- are you sure you're not wrong about this? I mean, if it reloads the parent window, doesn't this mean that onUnload() works? My suggestion is fiddling with the onUndload() function triggering it via a link (as suggested in the previous message -- with a href="javascript:oldWin()") until you get no error messages when accessing "javascript:" in Netscape. You didn't tell me -- do you get any more error messages now upon accessing "javascript:"? Bogdan Carlos Fernando Scheidecker Antunes wrote: > Hello Bogdan, > > On Microsoft Internet Explorer: > On Netscape and Konqueror:

« previous php.general (#78984) next »