Hello,
I have an animation being called with loadMovie by the "main container", and this animation has a button that should call an external HTML file in a new window with specific propierties.
You can see the development website here: http://gablessquare.com/dev/
Click on 'Our Location' and then you'll see the button 'Click here to see the interactive map'; THIS button has to open this HTML: http://gablessquare.com/dev/map.htm but is not working.
I've tried a variety of codes, like:
1.And on the <head> of the HTML I put:Code:on (release) { getURL("JavaScript:popup();"); }
****Code:function popup() { window.open('map.htm','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=760,height=450,left=100,top=100'); }
Another approach was this one:
2.****Code:on (release) { getURL('javascript:window.open("map.html","window","width=600,height=450");void(0);') }
Another was this one:
3.And in the HTML right before the <head> tag I put:Code:on (release) { getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n"); }
And then right after the <body> tag I put:Code:<SCRIPT LANGUAGE="JavaScript"> function popup() { window.open('http://www.google.com','toolbar=no,location=no,status=no,menubar=yes, scrollbars=no,resizable=no,width=100,height=100,left=0,top=0'); } </script>
Code:<A HREF=JavaScript:popup();></A>
-------
EDIT -
I think I got it working in some way but I need to pop up a customized window size.
EDIT 2 -
Ok, I got it working.
The solution was to use the code:
AAAAAAAAAAAND upload the frigging file to the serverCode:on (release) { getURL("javascript:function killthenALL(){window.open('map.htm','','toolbar=no,location=yes,status=no,menubar=no,scrollbars=no,resizable=no,width=570,height=460,left=100,top=100');}killthenALL(); \r\n"); }, for some reason it doesn't work locally.
Thanks guys anyway.
...




, for some reason it doesn't work locally.
Reply With Quote