<?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>Beutelevision &#187; jQuery</title>
	<atom:link href="http://beutelevision.com/blog2/topics/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://beutelevision.com/blog2</link>
	<description>by Thomas Beutel</description>
	<lastBuildDate>Fri, 23 Jul 2010 16:24:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='beutelevision.com' port='80' path='/blog2/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Detecting a click in a checkbox with jQuery</title>
		<link>http://beutelevision.com/blog2/2010/03/20/detecting-a-click-in-a-checkbox-with-jquery/</link>
		<comments>http://beutelevision.com/blog2/2010/03/20/detecting-a-click-in-a-checkbox-with-jquery/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 16:07:50 +0000</pubDate>
		<dc:creator>Thomas Beutel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://beutelevision.com/blog2/?p=206</guid>
		<description><![CDATA[A simple script to detect when a checkbox is clicked. What you do with once you&#8217;ve detected the click is up to you.
 &#60;html&#62;
 &#60;head&#62;
 &#60;script src="http://www.google.com/jsapi"&#62;&#60;/script&#62;
 &#60;script&#62;
 google.load("jquery", "1.3.2");
 google.setOnLoadCallback(function() {
  $('#agree').click( function() {
    if($(this).attr('checked')){
      alert('checked');
    }
    else{
  [...]]]></description>
			<content:encoded><![CDATA[<p>A simple script to detect when a checkbox is clicked. What you do with once you&#8217;ve detected the click is up to you.</p>
<pre> &lt;html&gt;
 &lt;head&gt;
 &lt;script src="<a href="http://www.google.com/jsapi">http://www.google.com/jsapi</a>"&gt;&lt;/script&gt;
 &lt;script&gt;
 google.load("jquery", "1.3.2");
 google.setOnLoadCallback(function() {
  $('#agree').click( function() {
    if($(this).attr('checked')){
      alert('checked');
    }
    else{
      alert('unchecked');
    }
  });
 });
 &lt;/script&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;p&gt;
 &lt;input id="agree" type="checkbox" /&gt; I agree
 &lt;/p&gt;
 &lt;/body&gt;&lt;/html&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://beutelevision.com/blog2/2010/03/20/detecting-a-click-in-a-checkbox-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Result of expression &#8216;document.forms[0].submit&#8217; [[object HTMLInputElement]] is not a function.</title>
		<link>http://beutelevision.com/blog2/2009/09/15/result-of-expression-document-forms0-submit-object-htmlinputelement-is-not-a-function/</link>
		<comments>http://beutelevision.com/blog2/2009/09/15/result-of-expression-document-forms0-submit-object-htmlinputelement-is-not-a-function/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 21:34:48 +0000</pubDate>
		<dc:creator>Thomas Beutel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://beutelevision.com/blog2/2009/09/15/result-of-expression-document-forms0-submit-object-htmlinputelement-is-not-a-function/</guid>
		<description><![CDATA[I was trying to add a small delay into my form submission like so:
&#60;form ... onsubmit="setTimeout('document.forms[0].submit()',2000);return false;"&#62;
but everytime I tried it, I got the following error:
Result of expression 'document.forms[0].submit' [[object HTMLInputElement]] is not a function.
This one had me stumped, until I realized what it was telling me&#8230; that my submit button was named &#8220;submit&#8221;.
&#60;input type="submit" [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to add a small delay into my form submission like so:</p>
<p><code>&lt;form ... onsubmit="setTimeout('document.forms[0].submit()',2000);return false;"&gt;</code></p>
<p>but everytime I tried it, I got the following error:</p>
<p><code>Result of expression 'document.forms[0].submit' [[object HTMLInputElement]] is not a function.</code></p>
<p>This one had me stumped, until I realized what it was telling me&#8230; that my submit button was named &#8220;submit&#8221;.</p>
<p><code>&lt;input type="submit" name="submit" id="Button1" /&gt;</code></p>
<p>I changed the name of the submit button and the problem went away.</p>
<p><code>&lt;input type="submit" name="button1" id="Button1" /&gt;</code></p>
<p>Basically, Javascript provides a &#8220;convenience&#8221; by adding the names of the form inputs as children of the form. But this then clashes with preset function names, like the submit() function.</p>
]]></content:encoded>
			<wfw:commentRss>http://beutelevision.com/blog2/2009/09/15/result-of-expression-document-forms0-submit-object-htmlinputelement-is-not-a-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using jQuery and Prototype together while avoiding the dreaded element.dispatchEvent error</title>
		<link>http://beutelevision.com/blog2/2009/08/28/using-jquery-and-prototype-together-and-avoiding-the-dreaded-elementdispatchevent-error/</link>
		<comments>http://beutelevision.com/blog2/2009/08/28/using-jquery-and-prototype-together-and-avoiding-the-dreaded-elementdispatchevent-error/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 18:13:27 +0000</pubDate>
		<dc:creator>Thomas Beutel</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://beutelevision.com/blog2/?p=161</guid>
		<description><![CDATA[Here is what I do to avoid the dreaded &#8220;element.dispatchEvent is not a function&#8221; error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls.
 &#60;!--  Set up jQuery and prototype together  --&#62;
 &#60;script src="http://www.google.com/jsapi"&#62;&#60;/script&#62;
 &#60;script&#62;
 google.load("jquery", "1.3.2");
 google.load("prototype", "1.6.0.3");
 google.setOnLoadCallback(function() {
 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is what I do to avoid the dreaded &#8220;element.dispatchEvent is not a function&#8221; error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls.</p>
<pre> &lt;!--  Set up jQuery and prototype together  --&gt;
 &lt;script src="http://www.google.com/jsapi"&gt;&lt;/script&gt;
 &lt;script&gt;
 google.load("jquery", "1.3.2");
 google.load("prototype", "1.6.0.3");
 google.setOnLoadCallback(function() {
  jQuery('#helphide').hide();
  jQuery('#helpbutton').click( function(){
    jQuery('#helphide').toggle();
 });
 });
 &lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://beutelevision.com/blog2/2009/08/28/using-jquery-and-prototype-together-and-avoiding-the-dreaded-elementdispatchevent-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Margins in IE6 with jQuery</title>
		<link>http://beutelevision.com/blog2/2008/07/25/fix-margins-in-ie6-with-jquery/</link>
		<comments>http://beutelevision.com/blog2/2008/07/25/fix-margins-in-ie6-with-jquery/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 00:19:45 +0000</pubDate>
		<dc:creator>Thomas Beutel</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[css jquery ie6]]></category>

		<guid isPermaLink="false">http://beutelevision.com/blog2/?p=87</guid>
		<description><![CDATA[IE6&#8217;s well known margin problems can be solved many ways, such as using CSS that only IE6 will read.
I like to use CSS and jQuery as follows:
CSS:
 #wrapper
 {
  margin: 0 auto;
  width: 800px;
  ...
 }
 .wrapperie6
 {
  width: 810px !important; /* compensate for IE6 */
 }
and the jQuery code:
$(document).ready(function() {
    if($.browser.version == '6.0'){
      [...]]]></description>
			<content:encoded><![CDATA[<p>IE6&#8217;s well known <a href="http://davidwalsh.name/prevent-double-margin-padding-ie6-css-float">margin problems</a> can be solved many ways, such as using CSS that only IE6 will read.</p>
<p>I like to use CSS and jQuery as follows:</p>
<p>CSS:</p>
<p><code> #wrapper<br />
 {<br />
  margin: 0 auto;<br />
  width: 800px;<br />
  ...<br />
 }<br />
 .wrapperie6<br />
 {<br />
  width: 810px !important; /* compensate for IE6 */<br />
 }</code></p>
<p>and the jQuery code:</p>
<p><code>$(document).ready(function() {<br />
    if($.browser.version == '6.0'){<br />
      // alert('you are using ie6');<br />
      $('#wrapper').addClass('wrapperie6');<br />
    }</code></p>
<p>It&#8217;s rude and crude, but it does the job.</p>
]]></content:encoded>
			<wfw:commentRss>http://beutelevision.com/blog2/2008/07/25/fix-margins-in-ie6-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
