<?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>Alex Medina &#187; Focus</title>
	<atom:link href="http://www.alexmedina.net/blog/tag/focus/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexmedina.net/blog</link>
	<description>Porque todos los días se aprende algo nuevo...</description>
	<lastBuildDate>Thu, 22 Dec 2011 09:40:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>El método focus() de jQuery no funciona en Google Chrome&#8230; Solución¡¡</title>
		<link>http://www.alexmedina.net/blog/2011/09/03/el-metodo-focus-de-jquery-no-funciona-en-google-chrome-solucion%c2%a1%c2%a1/</link>
		<comments>http://www.alexmedina.net/blog/2011/09/03/el-metodo-focus-de-jquery-no-funciona-en-google-chrome-solucion%c2%a1%c2%a1/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 10:11:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[Focus]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[onblur]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.alexmedina.net/blog/?p=287</guid>
		<description><![CDATA[Imagínate que este el código que te falla: $("#souper_fancy").focus(function() { $(this).select() }); Lo puedes solucionar así: $("#souper_fancy").mouseup(function(e){         e.preventDefault(); }); Además parece ser que sucede lo mismo con el método Onblur() y que también sucede en el navegador Safari]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: monospace;">Imagínate</span><code> que este el código que te falla:</code></p>
<pre><span style="color: #339966;"><code>$("#souper_fancy").focus(function() { $(this).select() });</code></span></pre>
<pre><code>
</code></pre>
<p><code>Lo puedes solucionar así:</code></p>
<pre><span style="color: #339966;"><code>$("#souper_fancy").mouseup(function(e){
        e.preventDefault();
});</code></span></pre>
<pre><span style="color: #339966;"><code>
</code></span></pre>
<p>Además parece ser que sucede lo mismo con el método Onblur() y que también sucede en el navegador Safari</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmedina.net/blog/2011/09/03/el-metodo-focus-de-jquery-no-funciona-en-google-chrome-solucion%c2%a1%c2%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP.NET AJAX UpdatePanel ScriptManager – Dirigir el Foco hacia un Control</title>
		<link>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/</link>
		<comments>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:03:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Foco]]></category>
		<category><![CDATA[Focus]]></category>
		<category><![CDATA[UpdatePanel]]></category>

		<guid isPermaLink="false">http://alexmedina.net/blog/?p=102</guid>
		<description><![CDATA[Tradicionalmente cuando queremos dirigir el foco hacia un control hacemos esto: Control.focus(); PERO si trabajamos con ASP.NET AJAX con un ScriptManager y un UpdatePanel al hacer postback asincrono el UpdatePanel , pierde el foco, para que esto no ocurra insertamos esta linea de codigo para lograr tener el foco donde queramos. ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page); [...]]]></description>
			<content:encoded><![CDATA[<p>Tradicionalmente cuando queremos dirigir el foco hacia un control hacemos esto:</p>
<p><code>Control.focus();</code></p>
<p>PERO si trabajamos con ASP.NET AJAX con un ScriptManager y un UpdatePanel al hacer postback asincrono el UpdatePanel , pierde el foco, para que esto no ocurra insertamos esta linea de codigo para lograr tener el foco donde queramos.</p>
<p><code>ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);</code></p>
<p>scriptManager.SetFocus(CONTROL);</p>
<p>CONTROL = Textbox(Caja de Texto)</p>
<p>Espero los haya ayudado , suerte con sus desarrollos.</p>
<p>PS: el metodo.SetFocus(CONTROL) , tiene como paramentro cualquier tipo de CONTROL ASP.NET asi que podemos usar cualquier CONTROL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexmedina.net/blog/2010/04/27/asp-net-ajax-updatepanel-scriptmanager-%e2%80%93-dirigir-el-foco-hacia-un-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

