-
[RESOLVED] [MX04] Passign variables through into a function - very simple
Hi there.
I have a function that is try to pass through a url to a pop up menu using Javasccript. The pop up works fine but i cant get the url parameter to pass through.
On the root of the movieclip i have:
Code:
function popUp(url : String){
var fullURL = url;
getURL("javascript:NewWindow=window.open('fullURL','myWindow','width=300,height=200,left=400,top=200,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
Then on the button i have:
Code:
on (release) {
popUp("www.msurgery.co.uk/contract.php");
}
Thanks for your time.
Last edited by juanmac; 07-04-2006 at 11:16 AM.
-
Try this...
code:
function popUp(url:String)
{
var fullURL = url;
getURL("javascript:window.open('"+fullURL+"','myWi ndow','width=300,height=200,left=400,top=200,toolb ar=No,location=No,scrollbars=No,status=No,resizabl e=No,fullscreen=No'); NewWindow.focus(); void(0);");
}
code:
on (release) {
popUp("http://www.msurgery.co.uk/contract.php");
}
Regards,
Mike.
-
Working now.
Thanks Mike, superb !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|