Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL doesn't seem to work in IE7

Status
Not open for further replies.

AndyH1

Programmer
Jan 11, 2004
350
GB
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>
 
Forgot to mention if I do getURL('test.htm','_top'), ie use _top instead of an iFrame this does work, but not what I need. I'm trying to load a page into an iframe depending on the item clicked in the flash movie.
Thanks
Andy
 
Sorry also forgot to mention I am trying to run this code from a CD, not on the web, so page is being run locally (part of an interactive CD)
Thanks again
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top