PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Javascript » Bug #3202

popupWrite ignores options array

Details

Submitted2005-01-14 16:18 UTC
Fromcmoehrke at netviser dot de
StatusBogus
PackageHTML_Javascript
PHP Version5.0.3
OSLinux
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>