[EMAIL PROTECTED] wrote:

Hi :

I've tried this in the perl script with no luck. Here is what I did. I
have this after reading replies I got.

$javascriptwin = "<script language=\"JavaScript\">
function openWindow(u, n, w, h)
{
 var win = window.open(u, n, \"toolbar=no,location=no,\"+
                             \"status=no,menubar=no,scrollbars=yes\"+
                              \"width=\"+w+\",height=\"+h);
}
</script>";

In the hash that has the <a> is pasted below:

%hashdata = (
...
'key_data' => ["<a href=\"\"
onclick=\"openWindow(\"http://www.domain.com/file.html\",\"win\";, 400,
400); return false;\">?<\/a>"],
....
);

This does not open a new window at all. I also do not even see the
contents of the file as well.

Have I missed something here?


rather than using the onclick event try:

'key_data' => ["<a href=\"javascript: 
openWindow(\"http://www.domain.com/file.html\",\"win\";, 400,
400);\">?<\/a>"]


cheers, Brad

--
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to