<?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>mgthantzin.com/blog &#187; firefox</title>
	<atom:link href="http://mgthantzin.com/blog/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://mgthantzin.com/blog</link>
	<description>After the sunset, a new day must be born,... trust me.</description>
	<lastBuildDate>Fri, 27 May 2011 02:21:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>innerText for Firefox</title>
		<link>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/</link>
		<comments>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:59:17 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[innertext]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=25</guid>
		<description><![CDATA[Firefox doesn’t recognise innerText property. Below is the fix. var AmountLabelControl = document.getElementById('lblAmount'); var amount; if (AmountLabelControl.textContent) { // Firefox... amount = AmountLabelControl.textContent; } else if (AmountLabelControl.innerText) { // IE... amount = AmountLabelControl.innerText; } Thant Zin Oo]]></description>
			<content:encoded><![CDATA[<p>Firefox doesn’t recognise innerText property. Below is the  fix.</p>
<table>
<tbody>
<tr>
<td>
<pre>var AmountLabelControl = document.getElementById('lblAmount');

var amount;

if (AmountLabelControl.textContent) {
// Firefox...
amount = AmountLabelControl.textContent;
}
else if (AmountLabelControl.innerText) {
// IE...
amount = AmountLabelControl.innerText;
}</pre>
</td>
</tr>
</tbody>
</table>
<p></p>
<p>Thant Zin Oo</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/innertext-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulating Button Click() Event in Firefox</title>
		<link>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/</link>
		<comments>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/#comments</comments>
		<pubDate>Thu, 13 May 2010 15:57:29 +0000</pubDate>
		<dc:creator>mgthantzin</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[click]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[simulate]]></category>

		<guid isPermaLink="false">http://mgthantzin.com/blog/?p=21</guid>
		<description><![CDATA[We cannot directly simulate click event in Firefox. Add the following code to register mouseclick event for the button. HTMLElement.prototype.click = function() { var evt = this.ownerDocument.createEvent(‘MouseEvents’); evt.initMouseEvent(‘click’, true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null); this.dispatchEvent(evt); } Then, you may call the event in Firefox as if you [...]]]></description>
			<content:encoded><![CDATA[<p>We cannot directly simulate click event in Firefox. Add the  following code to register mouseclick event for the button.</p>
<div>
<div>HTMLElement.prototype.click  = function() {<br />
var evt = this.ownerDocument.createEvent(‘MouseEvents’);<br />
evt.initMouseEvent(‘click’,  true, true, this.ownerDocument.defaultView,  1, 0, 0, 0, 0,  false, false, false,  false, 0, null);<br />
this.dispatchEvent(evt);<br />
}</div>
</div>
<p></p>
<p>Then, you may call the event in Firefox as if you do in IE.</p>
<p>For client-side button: document.getElementById(’btnUpdate’).click();<br />
For server-side button: document.getElementById(’&lt;%=  this.btnUpdate.ClientID %&gt;‘).click();</p>
]]></content:encoded>
			<wfw:commentRss>http://mgthantzin.com/blog/2010/05/simulating-button-click-event-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

