|
-
[F8] loadMovie and javascript seem not to like each other :(
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.
Code:
on (release) {
getURL("JavaScript:popup();");
}
And on the <head> of the HTML I put:
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.
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 in the HTML right before the <head> 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>
And then right after the <body> tag I put:
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:
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");
}
AAAAAAAAAAAND upload the frigging file to the server , for some reason it doesn't work locally.
Thanks guys anyway.
...
Last edited by rzea; 09-21-2006 at 04:15 PM.
-
Hi
I am using something like
on (release) {
getURL("javascript:NewWindow=window.open('page_con taining_.aspx?','newWin','width=657,height=250,lef t=10 0,top=100,screenX=100,screenY=100');NewWindow.focu s();void(0);");
}
But I need to add a variable after the URL example:
page_containing_.aspx?, ,points
Where points is a variable, but it wont take it when appears in the new window´s URL, it shows "points"
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
|