<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Onload Issues with Opera</title>
	<atom:link href="http://samuli.hakoniemi.net/onload-issues-with-opera/feed/" rel="self" type="application/rss+xml" />
	<link>http://samuli.hakoniemi.net/onload-issues-with-opera/</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 01:52:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: samuel</title>
		<link>http://samuli.hakoniemi.net/onload-issues-with-opera/comment-page-1/#comment-4512</link>
		<dc:creator>samuel</dc:creator>
		<pubDate>Thu, 28 Jul 2011 17:49:59 +0000</pubDate>
		<guid isPermaLink="false">http://samuli.hakoniemi.net/?p=93#comment-4512</guid>
		<description>Hi, I wanted to share experience I had with that issue :

your demo worked fine on my opera 11.5 (PC),
but my code didn’t, although the web server received the request and answered 200 OK.
unfortunately I couldn’t figure out why, perhaps it is a cross-domain issue ? (my img was loaded from another domain)
I’m using that code for tracking purpose (web analytics) so I don’t need to display it, I just need to be sure it is loaded.

I then had the idea to bind the onerror event to the image : it was triggered !!!
so the image is loaded, the answer is 200 OK, but opera fires onerror event…
perhaps someone knows how to get a more verbose console output (like for gecko / XUL errors) …

but my solution was here :

var im = new Image();
im.onload= function() {
opera.postError(‘image loaded’);
};
im.onerror = im.onload;

regards,
sam</description>
		<content:encoded><![CDATA[<p>Hi, I wanted to share experience I had with that issue :</p>
<p>your demo worked fine on my opera 11.5 (PC),<br />
but my code didn’t, although the web server received the request and answered 200 OK.<br />
unfortunately I couldn’t figure out why, perhaps it is a cross-domain issue ? (my img was loaded from another domain)<br />
I’m using that code for tracking purpose (web analytics) so I don’t need to display it, I just need to be sure it is loaded.</p>
<p>I then had the idea to bind the onerror event to the image : it was triggered !!!<br />
so the image is loaded, the answer is 200 OK, but opera fires onerror event…<br />
perhaps someone knows how to get a more verbose console output (like for gecko / XUL errors) …</p>
<p>but my solution was here :</p>
<p>var im = new Image();<br />
im.onload= function() {<br />
opera.postError(‘image loaded’);<br />
};<br />
im.onerror = im.onload;</p>
<p>regards,<br />
sam</p>
]]></content:encoded>
	</item>
</channel>
</rss>

