PDA

View Full Version : spawning pop-up boxes


pp4ever
05-29-2002, 09:12 PM
frig. http://www.geocities.com/penfif
when i click guestbook for my page, nothing happens.
the code in the button is

on (release) {
getURL ("javascript:spawnWindow('http://www.theguestbook.com/egbook/414286.gbook','Pen Fifteen','toolbar=no,location=yes,status=no,menuba r=no,scrollbars=yes,resizable=no,width=600,height= 400'");
}

and the code in the html page can be viewed through view source. anything wrong? am i missing any "}"s or ";"s?

thanks

tg
05-29-2002, 11:11 PM
my browser is telling my you have an error in your javascript.

Line: 1
Char: 171
Error: Expected ')'
Code: 0
URL: http://www.geocities.com/penfif/

Abelius
05-30-2002, 04:35 AM
Originally posted by pp4ever
[B]frig. http://www.geocities.com/penfif
when i click guestbook for my page, nothing happens.
the code in the button is

on (release) {
getURL ("javascript:spawnWindow('http://www.theguestbook.com/egbook/414286.gbook','Pen Fifteen','toolbar=no,location=yes,status=no,menuba r=no,scrollbars=yes,resizable=no,width=600,height= 400'");
}


I am not sure if that kind of scripts are allowed on Geocities...

Cremulator
05-30-2002, 07:23 AM
I 'think' this might be a problem.
take out the space in you code here: ("java script:spawnWindow so it should be: ("javascript:spawnWindow

and try putting an extra ) at the end of your getURL code:
height=400'"); needs to be height=400'"));

I am far from a begginer on Javascript, but give that a try ;)

Billy T
05-30-2002, 08:27 AM
Originally posted by Cremulator

I am far from a begginer on Javascript, but give that a try ;)

well aren't you just the ants pants! ;)

Cremulator
05-30-2002, 08:55 AM
hehe :D
I just wanna know if it worked:o