<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Ahah &amp; unobtrusive javascript</title>
	<atom:link href="http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/</link>
	<description>// MAXB.NET LABS</description>
	<lastBuildDate>Tue, 22 Nov 2011 17:06:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Massimiliano Balestrieri</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7802</link>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
		<pubDate>Fri, 31 Jul 2009 13:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7802</guid>
		<description>@gennaro

Ciao Gennaro,
live() devo studiarlo meglio. qui ho fatto una prova. non ha senso e non funziona [te lo dico subito]. oggi stacco tutto.  ci ripenserò a settembre.

http://maxb.net/scripts/ahah_issue/live.html

qui invece ho provato a realizzare un aggancio all&#039;evento ready con &quot;contesto dinamico&quot; (rileggendolo manca solo supercazzola e antani... lo so :)).

http://maxb.net/scripts/ahah_issue/ready.html

spero che da codice sia più chiaro.</description>
		<content:encoded><![CDATA[<p>@gennaro</p>
<p>Ciao Gennaro,<br />
live() devo studiarlo meglio. qui ho fatto una prova. non ha senso e non funziona [te lo dico subito]. oggi stacco tutto.  ci ripenserò a settembre.</p>
<p><a href="http://maxb.net/scripts/ahah_issue/live.html" rel="nofollow">http://maxb.net/scripts/ahah_issue/live.html</a></p>
<p>qui invece ho provato a realizzare un aggancio all&#8217;evento ready con &#8220;contesto dinamico&#8221; (rileggendolo manca solo supercazzola e antani&#8230; lo so <img src='http://maxb.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<p><a href="http://maxb.net/scripts/ahah_issue/ready.html" rel="nofollow">http://maxb.net/scripts/ahah_issue/ready.html</a></p>
<p>spero che da codice sia più chiaro.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gennaro</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7801</link>
		<dc:creator>Gennaro</dc:creator>
		<pubDate>Fri, 31 Jul 2009 12:48:41 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7801</guid>
		<description>Ciao Massimiliano,
non mi è chiaro cosa intendi quando affermi che &quot;non risolve il problema delle iniezioni ajax&quot;. In generale infatti, i metodi live() e die() funzionano senza problemi con elementi del DOM iniettati con i metodi ajax, in tutte le declinazioni ($.get(), $.post(), $.ajax() e load()).
Se invece ti riferisci alla necessità di bindare agli eventi solo ed unicamente gli elementi del DOM iniettati via ajax, allora hai due strade: 
    a) utilizzi per gli elementi iniettati dei selettori (classi/id) differenti da quelli già caricati al document.ready, ed utilizzi live()/die()
    b) la tua soluzione del singleton tramite flag.

Ciao,
Gennaro</description>
		<content:encoded><![CDATA[<p>Ciao Massimiliano,<br />
non mi è chiaro cosa intendi quando affermi che &#8220;non risolve il problema delle iniezioni ajax&#8221;. In generale infatti, i metodi live() e die() funzionano senza problemi con elementi del DOM iniettati con i metodi ajax, in tutte le declinazioni ($.get(), $.post(), $.ajax() e load()).<br />
Se invece ti riferisci alla necessità di bindare agli eventi solo ed unicamente gli elementi del DOM iniettati via ajax, allora hai due strade:<br />
    a) utilizzi per gli elementi iniettati dei selettori (classi/id) differenti da quelli già caricati al document.ready, ed utilizzi live()/die()<br />
    b) la tua soluzione del singleton tramite flag.</p>
<p>Ciao,<br />
Gennaro</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Massimiliano Balestrieri</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7799</link>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
		<pubDate>Fri, 31 Jul 2009 10:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7799</guid>
		<description>@Gennaro 

grazie per lo spunto. mi ero sempre ripromesso di guardare i metodi live/die e questa è stata l&#039;occasione.
però non risolve il problema delle iniezioni ajax.

Quello che ci vorrebbe secondo me... è una sorta di &quot;aggancio&quot; a tutte le istruzioni presenti nel &quot;document.ready&quot; (o nel bind(&quot;load&quot;)) per poterle applicare ai SOLI contenuti iniettati.

In pratica sarebbe molto comodo e utile applicare all&#039;html iniettato l&#039;evento &quot;ready/load&quot;
e se tutto questo fosse trasparente allo sviluppatore sarebbe PERFETTO.

success : function(html){ 
            $(html).trigger(&quot;ready&quot;);
}</description>
		<content:encoded><![CDATA[<p>@Gennaro </p>
<p>grazie per lo spunto. mi ero sempre ripromesso di guardare i metodi live/die e questa è stata l&#8217;occasione.<br />
però non risolve il problema delle iniezioni ajax.</p>
<p>Quello che ci vorrebbe secondo me&#8230; è una sorta di &#8220;aggancio&#8221; a tutte le istruzioni presenti nel &#8220;document.ready&#8221; (o nel bind(&#8220;load&#8221;)) per poterle applicare ai SOLI contenuti iniettati.</p>
<p>In pratica sarebbe molto comodo e utile applicare all&#8217;html iniettato l&#8217;evento &#8220;ready/load&#8221;<br />
e se tutto questo fosse trasparente allo sviluppatore sarebbe PERFETTO.</p>
<p>success : function(html){<br />
            $(html).trigger(&#8220;ready&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Massimiliano Balestrieri</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7739</link>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
		<pubDate>Tue, 28 Jul 2009 08:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7739</guid>
		<description>@Marcel

1) could you send me a link in which I can see the problem?
2) the typical error in IE is this (in my experience)

$(&quot;.something&quot;).plugin({
        option1 : &quot;value&quot;,
        option2 : &quot;value&quot;, //THIS COMMA CRASH IE JAVASCRIPT INTERPRETER
});</description>
		<content:encoded><![CDATA[<p>@Marcel</p>
<p>1) could you send me a link in which I can see the problem?<br />
2) the typical error in IE is this (in my experience)</p>
<p>$(&#8220;.something&#8221;).plugin({<br />
        option1 : &#8220;value&#8221;,<br />
        option2 : &#8220;value&#8221;, //THIS COMMA CRASH IE JAVASCRIPT INTERPRETER<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7738</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 28 Jul 2009 08:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7738</guid>
		<description>Well I don&#039;t know why I can&#039;t show my code, maybe for internal restrictions that you have. It contents a div with a rand id, and a jquery appended to it,

Thanks!!</description>
		<content:encoded><![CDATA[<p>Well I don&#8217;t know why I can&#8217;t show my code, maybe for internal restrictions that you have. It contents a div with a rand id, and a jquery appended to it,</p>
<p>Thanks!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcel</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7736</link>
		<dc:creator>Marcel</dc:creator>
		<pubDate>Tue, 28 Jul 2009 08:00:16 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7736</guid>
		<description>Hello Massimiliano, first of all, congratulations for your jquery google chart, it helps me a lot doing my job. But I have to tell you that I have a little problem with that. I created a php class that creates an structure like this:





and I insert that into my php page.

In firefox I have no problems with that, but in explorer I cannot do it, in ie, if I want to see it, I need to write the code manually, and obviously, that is not what I want to do.

Any idea that could help me to solve my problem???

Thank you by advance,

cheers, Marcel</description>
		<content:encoded><![CDATA[<p>Hello Massimiliano, first of all, congratulations for your jquery google chart, it helps me a lot doing my job. But I have to tell you that I have a little problem with that. I created a php class that creates an structure like this:</p>
<p>and I insert that into my php page.</p>
<p>In firefox I have no problems with that, but in explorer I cannot do it, in ie, if I want to see it, I need to write the code manually, and obviously, that is not what I want to do.</p>
<p>Any idea that could help me to solve my problem???</p>
<p>Thank you by advance,</p>
<p>cheers, Marcel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Massimiliano Balestrieri</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7735</link>
		<dc:creator>Massimiliano Balestrieri</dc:creator>
		<pubDate>Tue, 28 Jul 2009 07:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7735</guid>
		<description>grazie, ci provo subito :)</description>
		<content:encoded><![CDATA[<p>grazie, ci provo subito <img src='http://maxb.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gennaro</title>
		<link>http://maxb.net/blog/2009/07/27/ahah-unobtrusive-javascript/comment-page-1/#comment-7726</link>
		<dc:creator>Gennaro</dc:creator>
		<pubDate>Mon, 27 Jul 2009 21:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://maxb.net/blog/?p=410#comment-7726</guid>
		<description>2° soluzione automatica (responsabilità affidata alla libreria): utilizzare il metodo &lt;a href=&quot;http://docs.jquery.com/Events/live&quot; rel=&quot;nofollow&quot;&gt;live&lt;/a&gt; se si utilizza jQuery 1.3, oppure il plugin &lt;a href=&quot;http://docs.jquery.com/Plugins/livequery&quot; rel=&quot;nofollow&quot;&gt;livequery&lt;/a&gt; per le versioni precedenti. 
Entrambi fanno uso della &lt;a href=&quot;http://www.sitepoint.com/blogs/2008/07/23/javascript-event-delegation-is-easier-than-you-think/&quot; rel=&quot;nofollow&quot;&gt;Event Delegation&lt;/a&gt;.

Ciao!</description>
		<content:encoded><![CDATA[<p>2° soluzione automatica (responsabilità affidata alla libreria): utilizzare il metodo <a href="http://docs.jquery.com/Events/live" rel="nofollow">live</a> se si utilizza jQuery 1.3, oppure il plugin <a href="http://docs.jquery.com/Plugins/livequery" rel="nofollow">livequery</a> per le versioni precedenti.<br />
Entrambi fanno uso della <a href="http://www.sitepoint.com/blogs/2008/07/23/javascript-event-delegation-is-easier-than-you-think/" rel="nofollow">Event Delegation</a>.</p>
<p>Ciao!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

