<?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>Ajay - On the Road called Life &#187; firefox</title>
	<atom:link href="http://ajaydsouza.com/archives/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajaydsouza.com</link>
	<description>Blogging, WordPress, Work and Life</description>
	<lastBuildDate>Sun, 13 May 2012 14:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Firefox, Javascript and application/xhtml</title>
		<link>http://ajaydsouza.com/archives/2005/06/16/firefox-javascript-and-applicationxhtml/</link>
		<comments>http://ajaydsouza.com/archives/2005/06/16/firefox-javascript-and-applicationxhtml/#comments</comments>
		<pubDate>Thu, 16 Jun 2005 15:43:51 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://ajaydsouza.com/archives/2005/06/16/firefox-javascript-and-applicationxhtml/</guid>
		<description><![CDATA[I noticed a problem when serving the blog as application/xhtml. I released the Transpose Email plugin which uses a javascript function Transpose_Email(). This function works properly in IE and Opera. This works perfect in Firefox when the page is served as text/html, but the moment I shift to application/xhtml, I get a javascript error saying [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fajaydsouza.com%2Farchives%2F2005%2F06%2F16%2Ffirefox-javascript-and-applicationxhtml%2F' data-shr_title='Firefox%2C+Javascript+and+application%2Fxhtml'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fajaydsouza.com%2Farchives%2F2005%2F06%2F16%2Ffirefox-javascript-and-applicationxhtml%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fajaydsouza.com%2Farchives%2F2005%2F06%2F16%2Ffirefox-javascript-and-applicationxhtml%2F' data-shr_title='Firefox%2C+Javascript+and+application%2Fxhtml'></a><a class='shareaholic-tweetbutton' data-shr_count='horizontal' data-shr_href='http%3A%2F%2Fajaydsouza.com%2Farchives%2F2005%2F06%2F16%2Ffirefox-javascript-and-applicationxhtml%2F' data-shr_title='Firefox%2C+Javascript+and+application%2Fxhtml'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I noticed a problem when serving the blog as application/xhtml.</p>
<p>I released the <a href="http://ajaydsouza.com/wordpress/plugins/transpose-email-plugin/">Transpose Email plugin</a> which uses a javascript function <code>Transpose_Email()</code>.</p>
<p>This function works properly in IE and Opera.</p>
<p>This works perfect in Firefox when the page is served as text/html, but the moment I shift to application/xhtml, I get a javascript error saying function not found.</p>
<p>I have absolutely no idea how to solve this problem so that the function works when the page is served as XHTML.</p>
<p><del datetime="2005-06-17T07:25:23-5.5:00">Any suggestions / solutions?</del></p>
<p>Following my <a href="http://forums.mozillazine.org/viewtopic.php?t=280593">posting on MozillaZine Forums</a>, I was able to find a solution.<br />
Simply moved the javascript to an external file.</p>
<p>Also realized that when using the comment tags <!-- and --> in the inline javascript, the HTML parser was considering it a comment when the page was served as xhtml unlike when served as html.<br />
As a result, the javascript function was thought to be a comment and not a code!</p>
<p>Issue resolved. Happy that my plugin will now work even with stricter web standards <img src='http://ajaydsouza.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div id="crp_related"><h4>Related Posts:</h4><ul><li><a href="http://ajaydsouza.com/archives/2005/06/17/transpose-email-plugin-v11-released/" rel="bookmark" class="crp_title">Transpose Email Plugin v1.1 Released</a></li><li><a href="http://ajaydsouza.com/archives/2005/06/15/transpose-email-plugin/" rel="bookmark" class="crp_title">Transpose Email Plugin</a></li><li><a href="http://ajaydsouza.com/archives/2005/06/27/back-to-texthtml/" rel="bookmark" class="crp_title">Back to text/html</a></li><li><a href="http://ajaydsouza.com/archives/2006/04/01/wp-plugin-open-picture-window-plugin/" rel="bookmark" class="crp_title">WP-Plugin: Open Picture Window Plugin</a></li><li><a href="http://ajaydsouza.com/archives/2008/12/23/open-browser-window-updated-to-v121/" rel="bookmark" class="crp_title">Open Browser Window updated to v1.2.1</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div><div class="shr-publisher-326"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><hr style="border-top:black solid 1px" /><a href="http://ajaydsouza.com/archives/2005/06/16/firefox-javascript-and-applicationxhtml/">Firefox, Javascript and application/xhtml</a> was first posted on June 16, 2005 at 9:13 pm.<br />© 2003-2009 "<a href="http://ajaydsouza.com">Ajay - On the Road called Life</a>". Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please <a href="http://ajaydsouza.com/contact/">contact me</a>.<br /><br /><span style="font-size: 0.8em">Feed enhanced by the <a href="http://ajaydsouza.com/wordpress/plugins/add-to-feed/">Add To Feed Plugin</a> by <a href="http://ajaydsouza.com/">Ajay D'Souza</a></span><br />]]></content:encoded>
			<wfw:commentRss>http://ajaydsouza.com/archives/2005/06/16/firefox-javascript-and-applicationxhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

