Hi Brad:
[Louis] below.
[EMAIL PROTECTED] wrote:
Hi :rather than using the onclick event try:
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?
'key_data' => ["<a href=\"javascript:
openWindow(\"http://www.domain.com/file.html\",\"win\", 400,
400);\">?<\/a>"]
[Louis] Sure but I also want no toolbars, no menu bars, but only scrollbars.
So I do this :
$option = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes";
and add $option at the tail of your code snippet.
So I guess I add an extra variable in your code snippet. I will try again
with the above snippet and see what happens.
No, you are calling your openWindow() function which allready has those details in it, does it not?
cheers, Brad
-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
