Popup prob

Hi

I followed the popup tut, did everything. When I publish the file and test the buttons, the popup doesn’t appear but the Adress changes to:

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘http://home2.pi.be/lgeebele/Articles/articlesb2.htm’,‘Porsche%20Racing’,‘width=787,height=1121,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(560.5))+’,left=’+((screen.width/2)-(393.5))+’’)}else{myWin.focus();};void(0);

and a Line 39 error. What could be wrong? I’m loading this swf in another, is that a prob?

Thnx

line 39 error ?? we need all the info

I’m loading this swf in another, is that a prob?

i don’t think so … but i could be wrong

sure,

http://home2.pi.be/lgeebele/Articles.swf

and the fla

i assume that every magazine opens its own popup
and you’re using the same code for all of them … rigth ??

well … i haven’t seen you fla yet but a lot a people have had problems opening multiple windows with the code at the tutorial

i’ll take a look … hopefully i can fix it

correct, I adjusted the fla to one magazinepage only. (the real fla is complicated)

I don’t think the popup works when you test the movie in flash, you have to actually test it when the swf is embeded in an actual html document. Test it while it is in a html doc on your comp and see if it works.

electrongeek:

nop … that’s not the problem
i’m testing that way and still doesn’t work

i tried rewriting the whole code with no result …
lol … i have no idea what the hell is going on here !!?

hey LATO

why don’t you try lost’s code?
http://www.kirupaforum.com/showthread.php?s=&threadid=8114&highlight=popup

see attachment at second post

thanx, I tried it but same result:

javascript:newWin(‘http://home2.pi.be/lgeebele/Articles/articlesd1.htm’,‘Porsche%20Racing’,‘787’,‘1121’,‘no’,'no’)

as Adress

(Did this with first picture of 3rd magazine)

You are calling it wrong somehow.

Please post your whole getURL code.

Oh wait, I see the problem.

Your window name can only be one word, you have it as two…

Porsche Racing

Try changing it to porscheRacing instead.

i knew that !! :sure:

no i didn’t :frowning:

thanx y’all, prob solved (now i’m gonna find out how i could be so stupid, maby there’s a tut ;))

cya

Your not stupid. I remember when I first started with window opening in Javascript. I was so frazzled as to why i was getting an error in my script. I just couldn’t figure it out.

I changed my window name and voila, it worked. I had to learn the hard way too :slight_smile: