[thelist] Javascript blues...

Joshua OIson joshuao at alphashop.com
Thu Sep 28 03:06:03 CDT 2000


You should've been getting an object not defined error with that code.
Before you can use the document.write function you must capture the object
created by the call to window.open.  So, you need to change

this:

open("", "pictureWindow", "toolbar=no, location=no, directories=no,
status=no, menubar=no, scrollbars=no, resizable=yes, width=" + winy + ",
height=" + winx, winy, winx, pic, title)


to:

var pictureWindow = window.open("", "pictureWindow", "toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=yes, width=" + winy + ", height=" + winx, winy, winx, pic, title)

That should do it give you the results you'd expect.

-joshua





More information about the thelist mailing list