I'm having problems in that code Iv'e written with getURL doesn't seem to work in IE7 but works in other browsers. Does anyone know a fix (this isn't the have to click on flash object first to use problem).
Basically I have the code
var pageLoad="businesslink.htm";
// LOad the page in the Iframe
getURL("javascript:loadIframe("+"'"+pageLoad+"'"+")");
in my flash and the code below in the page. When I run this in Netscape the alert pops up, but in IE7 nothing happens (I have IE 7.0.5730.11). A couple of examples I got off the web that also use getURLs don't seem to work either, and I tried changing the IFrame directly using getURL('test.htm','RightFrame') and again works in netscape but not IE7. Any ideas?
Thanks
Andy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu</title>
<script language="javascript" type="text/javascript">
function loadIframe(page)
{
alert('test2');
}
</script>
</head>
<body bgcolor="#ffffff">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="702" height="174" id="menu" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="menu.swf" quality="high" bgcolor="#ffffff" width="702" height="174" name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" />
</object>
</body>
</html>
Basically I have the code
var pageLoad="businesslink.htm";
// LOad the page in the Iframe
getURL("javascript:loadIframe("+"'"+pageLoad+"'"+")");
in my flash and the code below in the page. When I run this in Netscape the alert pops up, but in IE7 nothing happens (I have IE 7.0.5730.11). A couple of examples I got off the web that also use getURLs don't seem to work either, and I tried changing the IFrame directly using getURL('test.htm','RightFrame') and again works in netscape but not IE7. Any ideas?
Thanks
Andy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns=" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>menu</title>
<script language="javascript" type="text/javascript">
function loadIframe(page)
{
alert('test2');
}
</script>
</head>
<body bgcolor="#ffffff">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" width="702" height="174" id="menu" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="menu.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="menu.swf" quality="high" bgcolor="#ffffff" width="702" height="174" name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage=" />
</object>
</body>
</html>