<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Working with Events, part 1</title>
	<link>http://www.learningjquery.com/2008/03/working-with-events-part-1</link>
	<description>Getting to know the library of choice for unobtrusive JavaScript</description>
	<pubDate>Thu, 28 Aug 2008 11:37:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Tahir</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53505</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Tue, 19 Aug 2008 14:23:07 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53505</guid>
		<description>I put it there jQuery Google Group as well with the heading

Problem in Handling Events after insertBefore()</description>
		<content:encoded><![CDATA[<p>I put it there jQuery Google Group as well with the heading</p>
<p>Problem in Handling Events after insertBefore()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53502</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Tue, 19 Aug 2008 13:40:46 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53502</guid>
		<description>Hey Karl thanks for ur suggession. I had posted it there plz take a look i hope u can solve it soon. as you was showing the same example in the above tutorial.

i have this problem when i call a function onClick after insertBefore(); 

when i click a button it insert TEXT AREA, SEND BUTTON at right place.
and then at that i apply some functionality like ALERT("ABC");  at that inserted BUTTON and it does not work.
Help me out of this ... plz soon.

* Code is OK if i does not put it in this snario. Only when i dynamically insert some tage and apply an event to those it does not work *


------------------------------------------------  OK (it inserts at relevant position) ----------------------------------------

$("div#sec_news_comments_stats").click(function () {

	$("&#124;id-&#124;' value='' /&#62;Save Comments").insertBefore($(this).parent()).hide();
	$("div#sec_news_comments").slideDown("slow");

	}

--------------------------------------------------------------  Problem ()  ----------------------------------------------------------

$("div#add_comments").click(function(){
		alert("Hello add_comments");    // Some functionality but it did not even gave alert.
	});</description>
		<content:encoded><![CDATA[<p>Hey Karl thanks for ur suggession. I had posted it there plz take a look i hope u can solve it soon. as you was showing the same example in the above tutorial.</p>
<p>i have this problem when i call a function onClick after insertBefore(); </p>
<p>when i click a button it insert TEXT AREA, SEND BUTTON at right place.<br />
and then at that i apply some functionality like ALERT(&#8221;ABC&#8221;);  at that inserted BUTTON and it does not work.<br />
Help me out of this &#8230; plz soon.</p>
<p>* Code is OK if i does not put it in this snario. Only when i dynamically insert some tage and apply an event to those it does not work *</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;  OK (it inserts at relevant position) &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>$(&#8221;div#sec_news_comments_stats&#8221;).click(function () {</p>
<p>	$(&#8221;|id-|&#8217; value=&#8221; /&gt;Save Comments&#8221;).insertBefore($(this).parent()).hide();<br />
	$(&#8221;div#sec_news_comments&#8221;).slideDown(&#8221;slow&#8221;);</p>
<p>	}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;  Problem ()  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>$(&#8221;div#add_comments&#8221;).click(function(){<br />
		alert(&#8221;Hello add_comments&#8221;);    // Some functionality but it did not even gave alert.<br />
	});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53501</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Tue, 19 Aug 2008 12:57:44 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53501</guid>
		<description>Hi Tahir,

Perhaps you could direct your question to the &lt;a href="http://groups.google.com/group/jquery-en/" rel="nofollow"&gt;jQuery Google Group&lt;/a&gt;. I think you'll have a much better chance of getting a satisfactory answer and will be able to follow up with additional questions more easily. Please describe as clearly as you can the outcome you're trying to achieve and show the code that you have written so far.</description>
		<content:encoded><![CDATA[<p>Hi Tahir,</p>
<p>Perhaps you could direct your question to the <a href="http://groups.google.com/group/jquery-en/" rel="nofollow">jQuery Google Group</a>. I think you&#8217;ll have a much better chance of getting a satisfactory answer and will be able to follow up with additional questions more easily. Please describe as clearly as you can the outcome you&#8217;re trying to achieve and show the code that you have written so far.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53491</link>
		<dc:creator>Tahir</dc:creator>
		<pubDate>Tue, 19 Aug 2008 10:29:24 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-53491</guid>
		<description>hey nice work.
Could you please elaborate more alert functionality.
Actually this is great exp. but i still got problem. when i click a button it insert();
and then at that i apply some functionality like alert(); and it does not work.
so please elaborate ur first example....... plz soon.</description>
		<content:encoded><![CDATA[<p>hey nice work.<br />
Could you please elaborate more alert functionality.<br />
Actually this is great exp. but i still got problem. when i click a button it insert();<br />
and then at that i apply some functionality like alert(); and it does not work.<br />
so please elaborate ur first example&#8230;&#8230;. plz soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kenandalda</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-52370</link>
		<dc:creator>kenandalda</dc:creator>
		<pubDate>Wed, 30 Jul 2008 17:22:26 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-52370</guid>
		<description>You just saved my life too, thank you very much!:)
I'd add your blog to my Favorates and subscribe its rss. 

Kenneth Chen 
Beijing-China</description>
		<content:encoded><![CDATA[<p>You just saved my life too, thank you very much!:)<br />
I&#8217;d add your blog to my Favorates and subscribe its rss. </p>
<p>Kenneth Chen<br />
Beijing-China</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafael Rosa</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-50307</link>
		<dc:creator>Rafael Rosa</dc:creator>
		<pubDate>Tue, 01 Jul 2008 18:16:20 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-50307</guid>
		<description>Karl,

You just saved my life :) I'll subscribe your RSS right now.

Thanks a lot,
Rafael Rosa
GPI TI
São Paulo - Brazil</description>
		<content:encoded><![CDATA[<p>Karl,</p>
<p>You just saved my life <img src='http://www.learningjquery.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> I&#8217;ll subscribe your RSS right now.</p>
<p>Thanks a lot,<br />
Rafael Rosa<br />
GPI TI<br />
São Paulo - Brazil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-49905</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Wed, 25 Jun 2008 19:31:41 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-49905</guid>
		<description>Hi Santhosh,

you'll need to put the other part of the code in either the same window.onload handler or in document ready. Document ready is typically preferred:

&lt;pre&gt;&lt;code&gt;$(document).ready(function() {
  $('button.alert').click(function() {
    alert('this is an alert message');
  });
});&lt;/code&gt;&lt;/pre&gt;

&lt;a href="http://www.learningjquery.com/2006/09/multiple-document-ready" rel="nofollow"&gt;More&lt;/a&gt; &lt;a href="http://docs.jquery.com/Events/ready#fn" rel="nofollow"&gt;information&lt;/a&gt; on &lt;a href="http://www.learningjquery.com/2006/09/introducing-document-ready" rel="nofollow"&gt;document ready&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Santhosh,</p>
<p>you&#8217;ll need to put the other part of the code in either the same window.onload handler or in document ready. Document ready is typically preferred:</p>
<pre><code>$(document).ready(function() {
  $('button.alert').click(function() {
    alert('this is an alert message');
  });
});</code></pre>
<p><a href="http://www.learningjquery.com/2006/09/multiple-document-ready" rel="nofollow">More</a> <a href="http://docs.jquery.com/Events/ready#fn" rel="nofollow">information</a> on <a href="http://www.learningjquery.com/2006/09/introducing-document-ready" rel="nofollow">document ready</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santhosh</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-49670</link>
		<dc:creator>santhosh</dc:creator>
		<pubDate>Sat, 21 Jun 2008 10:08:13 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-49670</guid>
		<description>Hi,

I am beginner to jQuery. i am trying to execute the following script through jquery, but i am not getting what am i expecting. can you please tell me where am i making mistake. 

  
  
   
    

 window.onload = function(){ alert("abc") }

$('button.alert').click(function() {
    alert('this is an alert message');
  });

    
  
  
  
Click me 
  
  

this suppose to give me alert message when i click the button but it is not. i have put the jquery.js in the same folder where i have the html file.

Thank you.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am beginner to jQuery. i am trying to execute the following script through jquery, but i am not getting what am i expecting. can you please tell me where am i making mistake. </p>
<p> window.onload = function(){ alert(&#8221;abc&#8221;) }</p>
<p>$(&#8217;button.alert&#8217;).click(function() {<br />
    alert(&#8217;this is an alert message&#8217;);<br />
  });</p>
<p>Click me </p>
<p>this suppose to give me alert message when i click the button but it is not. i have put the jquery.js in the same folder where i have the html file.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graphic design</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-48657</link>
		<dc:creator>Graphic design</dc:creator>
		<pubDate>Mon, 02 Jun 2008 16:01:17 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-48657</guid>
		<description>Hi all where can i find more information about this?</description>
		<content:encoded><![CDATA[<p>Hi all where can i find more information about this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-48376</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 28 May 2008 20:07:49 +0000</pubDate>
		<guid>http://www.learningjquery.com/2008/03/working-with-events-part-1#comment-48376</guid>
		<description>I never would have though about doing it this way! ... Thanks for the tut! :D</description>
		<content:encoded><![CDATA[<p>I never would have though about doing it this way! &#8230; Thanks for the tut! <img src='http://www.learningjquery.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
