Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > HTML and JavaScript

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-09-2004, 07:51 AM   #1
number-nine
Registered User
 
Join Date: May 2004
Posts: 6
Default Opening JS pop-up from dynamic menu in MX

Hello there,

In Flash MX I am using a dynamic menu which generates, as a variable, the name of a html page to be opened as a pop-up window.

In practice, when opening the hypothetic page "mypage.html", the variable "pagename" generates the value "mypage", which added to ".html" is joint in a string as "mypage.html", and this opens the pop-up window.

Actually, the following line...

getURL(pagename + ".html");

works correctly, but it opens the pop-up simply as a "_top" page on the main page. When I try to use the JS below, which is OK if the html page name is typed in the formula instead of being dynamically created...

getURL("javascript:window.top.open('nome'+'.html', '','width="+pagewidht+",height="+pageheight+
[[[othersettings]]]",scrollbars=0');void(0);");

all I get is a Flash warning saying ". . . ')' o ',' is required.
I tried many forms of syntax, with no positive result.

Has anyone a hint? Thanks a lot!

Number-Nine
number-nine is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.