PDA

View Full Version : [object window] javascript error


designcurb
12-Sep-2003, 03:34 PM
I recently rebuilt this site: filmposter.com (http://www.filmposter.com/acatalog/)
which got lost when the owners PC hard-drive went down :( .

Anyway, when I rebuilt the site I used the pop up script for the product images which was put forward to me by NormanRouxel here: http://community.actinic.com/showthread.php?s=&threadid=330

But with the new site I keep getting Object errors. Its a silly thing, but any help would be very helpful.

Cheers

NormanRouxel
14-Sep-2003, 08:40 AM
You seem to have a New Line between "'ActPopup'," and "'width=400,height.....". JavaScript can interpret new lines as end of statements so that's what's breaking the page. Make sure that all this is on a single line in Design / Text. See the dump of some generated text below:-

<A HREF="javascript:window.open('http://www.filmposter.com/cgi-bin/picture_frame.pl?nuttyprofessorbelgium.jpg', 'ActPopup',
'width=400,height=450,scrollbars,resizable')"><IMG SRC="nuttyprofessorbelgium(s).JPG" ALT="Nutty professor " BORDER=0 HEIGHT=125 WIDTH=94 ></A>

Norman