Bug #18059 Updated: Strange output of contents of JS-script
| From: | sniper@php.net | Date: | Sat, 29 Jun 2002 14:57:01 +0000 |
| Subject: | Bug #18059 Updated: Strange output of contents of JS-script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12522@lists.php.net to get a copy of this message | ||
ID: 18059
Updated by: sniper@php.net
Reported By: vitya@viking-motors.com.ua
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: FreeBSD 4.5-RC
PHP Version: 4.1.2
New Comment:
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 05:41:46] vitya@viking-motors.com.ua
My email: vitya@viking-motors.com.ua
------------------------------------------------------------------------
[2002-06-29 05:32:07] vitya@viking-motors.com.ua
My code:
-------------
<script language=javascript>
function img_view(url, w, h, t)
{
imagewin = window.open("","_blank","width="+w+",height="+h);
imagewin.document.write('bla-bla-bla');
}
</script>
--------------
I got this after php's work:
---------------
<script language=javascript>
function img_view(url, w, h, t)
{
imagewin = new Object() ;
imagewin.document.write('bla-bla-bla');
}
</script>
--------------------------
So, question is why php changed
imagewin = window.open("","_blank","width="+w+",height="+h);
with
imagewin = new Object() ;
???
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18059&edit=1