|
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]
|