<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx</link><description>Here's one that some of you may have seen before, but I thought I'd post it to save some time to those who didn't. Today we were trying to debug some client-side code and we needed to quickly wire the click event of a button. So we did this, without thinking</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4848011</link><pubDate>Wed, 31 Oct 2007 18:39:28 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4848011</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Matt, you're not paying attention. In ASP.NET Ajax, you attach events using Sys.UI.DomEvent.addHandler or $addHandler. This topic of this post is not how you should attach DOM events though. It's how when throwing together some quick test code (and in test code, I personally feel free to use obtrusive event handlers as I'm the only one who should care and it's way quicker to set-up, but feel free to do however you prefer), you can shoot yourself in the foot and spend some time figuring out what's happening.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4848011" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4847976</link><pubDate>Wed, 31 Oct 2007 18:30:38 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4847976</guid><dc:creator>matt</dc:creator><author>matt</author><description>&lt;p&gt;that is quite obtrusive! &amp;nbsp;try the jquery way&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4847976" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4695536</link><pubDate>Mon, 22 Oct 2007 17:52:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4695536</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Alexandru: what's wrong with the code layout? I viewed the post under IE7, Firefox, Opera and Safari w/o a problem.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4695536" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4690100</link><pubDate>Mon, 22 Oct 2007 09:51:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4690100</guid><dc:creator>alexandru savu</dc:creator><author>alexandru savu</author><description>&lt;p&gt;Good point with this overflow by wrong name.&lt;/p&gt;
&lt;p&gt;PS: you need to do something with the code layout. &lt;/p&gt;
&lt;p&gt;I had to copy the code into notepad2 to see what the onclick event was.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4690100" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4630637</link><pubDate>Fri, 19 Oct 2007 12:38:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4630637</guid><dc:creator>prashant jalasutram</dc:creator><author>prashant jalasutram</author><description>&lt;p&gt;Roy,&lt;/p&gt;
&lt;p&gt;Good catch point learnt today.Thanks for sharing.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Prashant&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://prashantjalasutram.blogspot.com/"&gt;prashantjalasutram.blogspot.com&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4630637" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4627737</link><pubDate>Fri, 19 Oct 2007 05:01:36 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4627737</guid><dc:creator>Erjan</dc:creator><author>Erjan</author><description>&lt;p&gt;I prefer using elementID_EventName. It is close to the C#/VB convention and makes it more understandable for people viewing my client-side code that are not used to code javascript.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Erjan&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4627737" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4625942</link><pubDate>Thu, 18 Oct 2007 22:39:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4625942</guid><dc:creator>Bertrand Le Roy</dc:creator><author>Bertrand Le Roy</author><description>&lt;p&gt;Errr, Morten, which version of IE are you using? I'm getting the error message in a dialog and it doesn't crash.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4625942" width="1" height="1"&gt;</description></item><item><title>re: JavaScript stack overflow</title><link>http://weblogs.asp.net/bleroy/archive/2007/10/18/javascript-stack-overflow.aspx#4625808</link><pubDate>Thu, 18 Oct 2007 22:25:16 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4625808</guid><dc:creator>Morten</dc:creator><author>Morten</author><description>&lt;p&gt;I especially like how IE handles stack overflow. *POP!* and IE is gone...&lt;/p&gt;
&lt;p&gt;Stack overflow is actually a faster way of closing down IE than clicking the close button :-)&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4625808" width="1" height="1"&gt;</description></item></channel></rss>