Popups don't work! This should be simple

I have been working on this site for a long time. I followed the popup tutorial on Kirupa and have even searched this forum.

I attached this action to my buttons that I want to pop open.

on (release) {
getURL(“javascript:Launch('http://www.furraro.com/recipes/marinade_page1.html”);
}

Then in my HTML I added this java script:

SCRIPT LANGUAGE=“JavaScript”>
function Launch(page) {
OpenWin = this.open(page, “Furraro Ranch”, “toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=550”);
}
/SCRIPT

(I removed the <> on purpose so it will show up here)

The pop up windows work on my browser, but they Dont work on any other machine. I use a Mac, they dont seem to open on PC… Whats the deal with them?

The website is:
www.furraro.com

Anyone have any ideas? Anything would be very helpfull.

Well, I would start by changing this:


on (release) {
getURL("about :Launch('http://www.furraro.com/recipes/marinade_page1.html");
}

to this:


on (release) {
getURL("about :Launch('http://www.furraro.com/recipes/marinade_page1.html');");
}

of course the word ‘about’ is really ‘javascript’. This board removes that. I’d give that a whirl.

I would also use window.open instead of this.open for a popup.

Ok thanks a lot! I made the changes… though, what do you mean exactly when you said "of course the word ‘about’ is really ‘javascript’. This board removes that. " Where do I need to put “<>”?

Ok I made those changes…
Now when I click on one of my links I am taken to this web address:

about:Launch(‘http://www.furraro.com/map.html’);

It does not open up in a new window. What am I doing wrong?

btt

What I meant is this forum’s bad word filter also filters out the word javascript when it’s followed by a ‘:’. Here, this is what that line of code should look like on a button in your flash movie:
(sorry - attached text file) :beam:
Here’s what your script should look like in the <**HEAD> of your HTML:


<SCRIPT LANGUAGE="JavaScript"> 
function Launch(page) { 
OpenWin = this.open(page, 'Furraro Ranch', ' toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=550'); 
} 
</SCRIPT>

You know, in hind sight, I helped Sintax with a multiple popup window thing from Flash to javascript, but I just used what was in the tutorial. Here’s the thread:

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=32940&highlight=sintax.html

This is what was acomplished:
http://www.freddythunder.com/test/sintax.html

there…:stuck_out_tongue:

Ok ok… thanks for your help. Perhaps I am in idiot mode tonight. I followed your code and I STILL can get it. Maybee I need sleep. i attached the EXACT code I am using to this message.

back to top

i dont think the syntax in the text file for the javascript is right, shouldn’t it be:


<SCRIPT LANGUAGE="JavaScript"> 
function Launch(page) { 
OpenWin = this.open(page, 'Furraro Ranch', '  toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=550'); 
} 
</SCRIPT>

  • Sorry freddy, I stole it from ur post, but it’s not like this in krob’s text file.

Thanks.

How come the popups dont open in the specified window size either? It must be something simple that I am not picking up on. Thanks again for everyones help.

Uhm-- ok so I did everything. The popup windows open. But then my original Flash index.html file (http://www.furraro.com) takes me to this site: http://furraro.com/undefined

What is going on? The windows should just pop open and not affect the main web page. Go to http://www.furraro.com and click on the links. You will see what happens. It’s pretty odd.

I attached my code.

btt


OpenWin = this.open(page,'furraro',toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=550);

You don’t have the single quote marks around your window options. I believe it needs to be there. Your above code should look like this:


OpenWin = this.open(page,'furraro','toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,width=525,height=550');

I also got a bunch of extra wierd characters in your text files - don’t know if that had anything to do with it or not. When you reply, you can use [ as ] and [ php ] to display various codes - just take out the spaces between the s and the as or php.

BTW-

Sorry freddy, I stole it from ur post, but it’s not like this in krob’s text file.

That’s okay man, I don’t mind :stuck_out_tongue:

Freddy - thanks a lot for your help.