<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Brad Rees &#187; Playstation 3</title>
	<atom:link href="http://bradleyrees.com/blog/index.php/tag/playstation-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradleyrees.com/blog</link>
	<description>blog</description>
	<lastBuildDate>Mon, 12 Jul 2010 13:14:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Playstation 3 Javascript Support</title>
		<link>http://bradleyrees.com/blog/index.php/playstation-3-javascript-support/</link>
		<comments>http://bradleyrees.com/blog/index.php/playstation-3-javascript-support/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 12:43:43 +0000</pubDate>
		<dc:creator>Brad</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Playstation 3]]></category>

		<guid isPermaLink="false">http://bradleyrees.com/blog/?p=17</guid>
		<description><![CDATA[Recently I have been investigating the web capabilities of the Playstation 3 NetFront browser, and for the most part it works as expected. There are a few caveats however, and in my case this was enough to prevent the Prototype JavaScript library from loading.  So far I have discovered the following issues:

Ajax works, however it will only [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have been investigating the web capabilities of the Playstation 3 NetFront browser, and for the most part it works as expected. There are a few caveats however, and in my case this was enough to prevent the <a href="http://www.prototypejs.org/" target="_blank">Prototype JavaScript library</a> from loading.  So far I have discovered the following issues:</p>
<ul>
<li>Ajax works, however it will only do a GET request &#8211; POST returns immediately with no data supplied.</li>
<li>General browser model most closely follows Internet Explorer, however the accessors for the CSS opacity is like other browsers (Mozilla).</li>
<li>Currently can&#8217;t read the opacity, gives a value of 1.0 always.</li>
<li>Can&#8217;t fire custom events as the method for creating an event does not work (<code>document.createEventObject</code>).</li>
<li>Since there are no custom events some functions do not work, such as Prototype&#8217;s <code>document.observe('dom:loaded')</code>.</li>
</ul>
<p>The event firing issue is a bit of a nasty one if you rely on custom event for updating page elements. To work around Prototype&#8217;s dom:loaded issue I have added a new method: <code>Event.domLoaded(),</code> that takes a function and stores it in an array. Once the DOM is ready the array is iterated through and each function is called. I have also enhanced the method to call the function parameter if the DOM has already been marked as ready, thereby preventing race conditions caused by a delayed function call. In other words it makes it safe to register a function to be called as soon as possible, regardless of the present state of the page.</p>
<p>I have uploaded an updated version of Prototype with the fixes applied &#8211; <a title="Prototype patched for PS3" href="http://bradleyrees.com/Files/prototype.js">download here</a>. Let me know if there are any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://bradleyrees.com/blog/index.php/playstation-3-javascript-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
