<?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>Duality - GOD has created you &#187; ie</title>
	<atom:link href="http://www.rickyok.net/tag/ie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rickyok.net</link>
	<description>Sharing information that we learned the hard way</description>
	<lastBuildDate>Fri, 26 Nov 2010 16:33:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>IE Focus Problem</title>
		<link>http://www.rickyok.net/2008/08/ie-focus-problem/</link>
		<comments>http://www.rickyok.net/2008/08/ie-focus-problem/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 12:50:00 +0000</pubDate>
		<dc:creator>rickyok</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://192.168.2.100/rickyok/?p=38</guid>
		<description><![CDATA[I making an application that required to focus() on text input on a form. All the form is using AJAX. Usually u just need this command to make it work using Jquery: $(&#8220;#search_code&#8221;).focus(); But i think IE 7 has a problem focusing on created-on-the-fly-DOM text input. It won&#8217;t focus. Firefox does this splendidly without any [...]]]></description>
			<content:encoded><![CDATA[<p>I making an application that required to focus() on text input on a form. All the form is using AJAX. Usually u just need this command to make it work using Jquery:</p>
<p>$(&#8220;#search_code&#8221;).focus();</p>
<p>But i think IE 7 has a problem focusing on created-on-the-fly-DOM text input. It won&#8217;t focus. Firefox does this splendidly without any problem. So i think this may resolve the problem</p>
<p>$(&#8220;#search_code&#8221;).blur().focus();</p>
<p>And it doesn&#8217;t. I try to googling and found some site to try select first than focus. So i type this code :</p>
<p>$(&#8220;#search_code&#8221;).select().focus();</p>
<p>It work on the first DOM, when i remove the field and recreated it, it won&#8217;t focus anymore&#8230;</p>
<p>After 3 days stuck on this error. I decided on temporarily fixed this with stupid workaround</p>
<pre>function ieFocus(el) {  // Damn IE  for(a = 0 ; a < 10 ; a++) {    el.blur();    el.focus();  }}</pre>
<p>I&#8217;m trying to find a proper solution to this problem. Have anyone have a same problem before? Please reply ^^</p>
<p>Thanks in advance.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save" onclick="pageTracker._trackPageview('/outgoing/www.addtoany.com/share_save?referer=');"><img src="http://www.rickyok.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p><div style='display:none' id="post-refEl-38"></div>]]></content:encoded>
			<wfw:commentRss>http://www.rickyok.net/2008/08/ie-focus-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

