Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-18-2004, 09:30 AM   #1
dpoole
Registered User
 
Join Date: Aug 2002
Location: germany
Posts: 2
Default Problem with getURL(javascript:) and IE

Hi to all,

there are a html page, that embed a simple flash movie with following AS code:
Code:
getURL("javascript:CallMe()");
the flash movie should call the js function "CallMe()" in the same html page

and here the html code from the page:
Code:
<head>
	<title>Unbenannt</title>
	<meta http-equiv="expires" content="0" >
	<meta http-equiv="PRAGMA" content="no-cache" >
	<meta http-equiv="CACHE-CONTROL" content="no-cache" > 
	<script language="JavaScript">
<!--
	function CallMe()
	{
		// do nothing
		window.open("http://www.google.de","_blank");
	}
	// -->
</script>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="300" height="200" id="flash_movie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash_movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="flash_movie.swf" quality="high" bgcolor="#ffffff" width="300" height="200" name="flash_movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<br><br>
<img src="img/clown.jpg" alt="" width="400" height="267" border="0">
<br><br>
<img src="img/eicheln.jpg" alt="" width="400" height="264" border="0">

<br><br>
<img src="img/bauarbeiter.jpg" alt="" width="400" height="268" border="0">
<br><br>
<img src="img/christbaumkugeln.jpg" alt="" width="400" height="314" border="0">



</body>
</html>
my Problem:
While the Internet Explorer loading the html page and the containing images from server, the flash movie are calling the javascript function in the html page.

In this moment the IE abort loading the images. So all images on the html pages does not appear. in a local environment the problem does not occur, because the loading of images are complete, before the flash movie calls the JS function.

With Mozilla or Firefox the problem does not occur.

Any suggestions ?


Thanks in advance
dp
dpoole is offline   Reply With Quote
Old 07-11-2006, 11:43 AM   #2
foobie
Registered User
 
Join Date: Jul 2006
Posts: 1
Default

Quote:
Originally Posted by dpoole
Hi to all,

there are a html page, that embed a simple flash movie with following AS code:
Code:
getURL("javascript:CallMe()");
the flash movie should call the js function "CallMe()" in the same html page

and here the html code from the page:
Code:
<head>
	<title>Unbenannt</title>
	<meta http-equiv="expires" content="0" >
	<meta http-equiv="PRAGMA" content="no-cache" >
	<meta http-equiv="CACHE-CONTROL" content="no-cache" > 
	<script language="JavaScript">
<!--
	function CallMe()
	{
		// do nothing
		window.open("http://www.google.de","_blank");
	}
	// -->
</script>
</head>
<body>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="300" height="200" id="flash_movie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="flash_movie.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="flash_movie.swf" quality="high" bgcolor="#ffffff" width="300" height="200" name="flash_movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<br><br>
<img src="img/clown.jpg" alt="" width="400" height="267" border="0">
<br><br>
<img src="img/eicheln.jpg" alt="" width="400" height="264" border="0">

<br><br>
<img src="img/bauarbeiter.jpg" alt="" width="400" height="268" border="0">
<br><br>
<img src="img/christbaumkugeln.jpg" alt="" width="400" height="314" border="0">



</body>
</html>
my Problem:
While the Internet Explorer loading the html page and the containing images from server, the flash movie are calling the javascript function in the html page.

In this moment the IE abort loading the images. So all images on the html pages does not appear. in a local environment the problem does not occur, because the loading of images are complete, before the flash movie calls the JS function.

With Mozilla or Firefox the problem does not occur.

Any suggestions ?


Thanks in advance
dp
Apologies for the bump, but I'd just like to say a big "thank you" for this post. The behaviour still occurs in IE (not opera/firefox etc) - basically a GetURL aborts any current requests for images on the page. I guess because GetURL is equivalent to navigating away from the page so IE cancels any outstanding requests.

Waiting for the onload handler to kick in should fix this problem, but it's still a PITA!
foobie is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:53 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.