LATO
January 25, 2003, 9:50pm
1
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
system
January 25, 2003, 9:56pm
2
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
system
January 25, 2003, 10:04pm
3
system
January 25, 2003, 10:13pm
4
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
system
January 25, 2003, 10:15pm
5
correct, I adjusted the fla to one magazinepage only. (the real fla is complicated)
system
January 25, 2003, 10:24pm
6
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.
system
January 25, 2003, 10:51pm
7
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 !!?
system
January 25, 2003, 10:58pm
8
system
January 25, 2003, 11:25pm
9
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)
system
January 25, 2003, 11:27pm
10
You are calling it wrong somehow.
Please post your whole getURL code.
system
January 25, 2003, 11:28pm
11
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.
system
January 25, 2003, 11:37pm
13
thanx y’all, prob solved (now i’m gonna find out how i could be so stupid, maby there’s a tut ;))
cya
system
January 25, 2003, 11:52pm
14
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