Forum Moderators: open
I was hoping someone could help me out. I am using Intenet Explorer 6 on XP. I'm creating a Flash website that uses Javascript to open pop up windows in my HTML browser. I noticed that these pop windows work great in Netscape 7.0, but only work locally in Internet Explorer.
When I put the Flash files and HTML files on the server, I get errors when trying to open these pop up windows (through Internet Explorer). The error message I get back is " Cannot find server or DNS Error". I'm not sure what to do because everything works when I use Netscape.
Here's the code in my HTML page that I'm using:
<note: line breaks added in features string - tedster>
<SCRIPT LANGUAGE="JavaScript">
function popup6()
{window.open('wq_anim_a6.htm','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,width=350,height=175,left=0,top=0');
}
function popup7() {window.open('wq_anim_a7.htm','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,width=375,height=175,left=0,top=0');
}
function popup8() {window.open('wq_anim_a8.htm','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,width=375,height=175,left=0,top=0');
}
function popup10() {window.open('wq_anim_a10.htm','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,width=460,height=278,left=0,top=0');
}
</script>
Thanx,
[edited by: tedster at 3:24 am (utc) on April 13, 2003]
[edit reason] stop side scroll [/edit]
You may want to try with full URL ie [mydomain.com...]
leo
1. This is the Actionscript assigned to a button in Flash (MX)
on (release) {
getURL("JavaScript:popup6();");
}
2.The Javascript is entered after the </head> in the HTML page
<SCRIPT LANGUAGE="JavaScript">
function popup6()
{window.open('wq_anim_a6.htm','',
'toolbar=no,location=no,directories=no,status=no,menubar=no,
scrollbars=no,resizable=no,width=350,height=175,left=0,top=0');
}
</script>
Domain name is either absolute (http://www.mydomain/wq_anim_a6.htm)
or
relative (wq_anim_a6.htm)
It works either way in Netscape