|
Posted by Randy Webb on 09/20/05 00:39
gleverett@gmail.com said the following on 9/19/2005 4:11 PM:
> I have been searching the 'Net, and I can't find the right solution
> here. I am writing some PHP pages that utilize some Javascript. The
> script works in Mozilla/Netscape, but fails in IE. I don't know if
> it's the Javascript or the PHP that is causing the problem. I started
> with an example in a book and added on.
>
> The script I'm using is:
>
> <SCRIPT LANGUAGE="Javascript" TYPE="text/javascript">
> <!--
> function open_window(url) {
> var NEW_WIN = null;
> NEW_WIN = window.open ("", "Record Viewer", "toolbar=no,width=<?php
IE is known not to handle window names with spaces in them real well.
Change it to "RecordViewer" or "Record_Viewer"
> echo $new_win_width ?>,height=<?php echo new_win_height
> ?>,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=no");
> NEW_WIN.location.href = url;
> }
>
> //-->
> </SCRIPT>
Post the code that gets sent to the browser, not the PHP code that
generates it. And why are you opening a blank window and then setting
it's href property? Just specify the URL in the window.open call:
window.open(url,"Record Viewer",.....)
> <a
> href="javascript:open_window('$PHP_SELF?action=action1');\">Action1</a>
http://jibbering.com/faq/#FAQ4_24
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Navigation:
[Reply to this message]
|