You are here: Re: Javascript window.open fails in IE « PHP Programming Language « IT news, forums, messages
Re: Javascript window.open fails in IE

Posted by Gιrard Talbot on 09/21/05 05:47

G-Man a Γ©crit :
> Thanks to all the suggestions. It turned to be the space in the window
> name.
>
> To be complete, here is the code that is sent to the browser (minus the
>
> PHP, and after the change to an "_" in the window name):
>
> <HTML>
> <HEAD>
> <SCRIPT LANGUAGE="Javascript" TYPE="text/javascript">

Again, why do you use language? language is deprecated.

> <!--

Why do you need to comment the HTML code? It's not needed anymore.

> function open_window(url) {
> var NEW_WIN = null;
> NEW_WIN = window.open ("", "Record_Viewer",
> "toolbar=no,width=850,height=575,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
> NEW_WIN.location.href = url;

Why not insert the url in the 1st parameter of the window.open()
function? instead of adding another instructions just to do that...
You do not need to set the config parameters to no once there is at
least 1 parameter defined.
You set the height to 575 but this will not be carried out by a large
majority of browsers (even users with a 1024x768 scr.res.) because there
won't be enough height on the user workarea for applications. So, your
code will trigger error correction mechanisms in MSIE 6, Mozilla-based
browsers and most likely other browsers.


> Thanks! This has been racking my brain for about a week!


Everything was already mentioned at this page:

http://developer.mozilla.org/en/docs/Gecko_DOM_Reference

along with best recommendations, examples, etc..

GΓ©rard
--
remove blah to email me

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация