Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
image.onload produces "not implemented" error after action runs
Old 12-02-2005, 04:58 PM image.onload produces "not implemented" error after action runs
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
This code runs fine in Safari and Mozilla and gives me an error in IE (story of my life). The image loads, triggers the loaded functionm the alert comes up, but afterwards it says error: "Not Implemented" for the line of the body's onload command. Any help on this? This is not my real code, just simplified to isolate the problem. Basically I want to run a function when an image is done loading. Like a slideshow, after a transparent image is loaded, a transition is called to show it. Thanks.

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
		<title>Untitled Page</title>
<script>
function loaded() {
	alert('Loaded');
}
</script>
	</head>

	<body bgcolor="#ffffff" onload="document.getElementById('daImg').onload = loaded();">

	<img src="http://images.motogp.com/multimedia2/396/396109_50572.jpg" id="daImg">
	</body>

</html>
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
 
Register now for full access!
Old 05-23-2006, 09:30 AM Re: image.onload produces "not implemented" error after action runs
Experienced Talker

Posts: 31
Trades: 0
The issue is that Javascript is implemented differently in different browsers.
while the following:
HTML Code:
document.getElementById("bin").onmouseup = alert('Error');
will function correctly in Firefox, it will throw an error in IE.
.:origin:. is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to image.onload produces "not implemented" error after action runs
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10005 seconds with 12 queries