Home » HTML » HTML_Javascript » Bug #3202
popupWrite ignores options array
Details
| Submitted | 2005-01-14 16:18 UTC |
|---|---|
| From | cmoehrke at netviser dot de |
| Status | Bogus |
| Package | HTML_Javascript |
| PHP Version | 5.0.3 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-01-14 16:18 UTC] cmoehrke at netviser dot de
Description:
------------
the method popupWrite() ignores the values in the options Array.
Reproduce code:
---------------
echo $js->startScript();
$options = array ("no",
"no",
"no",
"no",
"no",
"no"
);
$content = '';
echo $js->popupWrite("var2",$content,
"Name2",200,200,$options);
echo $js->endScript();
Expected result:
----------------
<script type="text/javascript" defer="defer">
var2= window.open("", "Name2", "width=200, height=200, resizable=no, scrollbars=no, menubar=no, toolbar=no, status=no, location=no, top=300, left=300")
if (var2){
var2.focus();
var2.document.open();
var2.document.write('');
var2.document.close();
if (var2.opener == null) var2.opener = self;
}
</script>
Actual result:
--------------
<script type="text/javascript" defer="defer">
var2= window.open("", "Name2", "width=200, height=200, resizable=yes, scrollbars=yes, menubar=yes, toolbar=yes, status=yes, location=yes, top=300, left=300")
if (var2){
var2.focus();
var2.document.open();
var2.document.write('');
var2.document.close();
if (var2.opener == null) var2.opener = self;
}
</script>