<?xml version="1.0" encoding="iso-8859-1"?>
<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>Pure-Essence.Net &#187; javascript</title>
	<atom:link href="http://pure-essence.net/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://pure-essence.net</link>
	<description>you must visit this geeky girl's weblog!</description>
	<lastBuildDate>Fri, 20 Nov 2009 14:31:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Error: submit is not a function</title>
		<link>http://pure-essence.net/2008/10/15/javascript-error-submit-is-not-a-function/</link>
		<comments>http://pure-essence.net/2008/10/15/javascript-error-submit-is-not-a-function/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 18:13:35 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[non php code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript error]]></category>
		<category><![CDATA[submit is not a function]]></category>

		<guid isPermaLink="false">http://pure-essence.net/?p=1333</guid>
		<description><![CDATA[Just my luck and I ran into the dreaded submit is not a function javascript error.
Here&#8217;s the scenario.
While coding javascript along, you get a form via id or name on your html page and calls the submit() function on it. You think it should just behave as expected (submits the form) instead nothing happens and [...]]]></description>
			<content:encoded><![CDATA[<p>Just my luck and I ran into the dreaded submit is not a function javascript error.</p>
<p>Here&#8217;s the scenario.</p>
<p>While coding javascript along, you get a form via id or name on your html page and calls the submit() function on it. You think it should just behave as expected (submits the form) instead nothing happens and in firebug, you get a submit is not a function error. You are like WTF is going on? You start to wonder if you remembered the syntax correctly so you do some research and all the pages tell you yes it&#8217;s just submit() and nothing else.</p>
<p>Finally you start to search on the error &#8220;submit is not a function&#8221; you get to <a href="http://www.chovy.com/javascript/javascript-error-submit-is-not-a-function/">this page</a> and you learned:</p>
<blockquote><p>
The reason was the statement &#8220;formObj.submit();&#8221; in the javascript was colliding (resulting in ambiguity within the browser) with the form button, which was also named &#8220;submit&#8221;.
</p></blockquote>
<p>So just rename the element within the form tag that is named &#8220;submit&#8221; will fix the problem.</p>
<p>Here&#8217;s an example.</p>
<p>HTML:<br />
<code>&lt;form id="search"&gt;&lt;input name="something" /&gt;&lt;input type="submit" name="submit" /&gt;&lt;/form&gt;</code></p>
<p>Javascript:<br />
<code>function submitForm() {
  document.getElementById('search').submit();
}</code><br />
gives &#8220;submit is not a function&#8221; error.</p>
<p>Change HTML to:<br />
<code>&lt;form id="search"&gt;&lt;input name="something" /&gt;&lt;input type="submit" name="NOT_SUBMIT" /&gt;&lt;/form&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2008/10/15/javascript-error-submit-is-not-a-function/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>jQuery plugin &#8211; tableRowCheckboxToggle</title>
		<link>http://pure-essence.net/2008/02/26/jquery-plugin-tablerowcheckboxtoggle/</link>
		<comments>http://pure-essence.net/2008/02/26/jquery-plugin-tablerowcheckboxtoggle/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 20:58:41 +0000</pubDate>
		<dc:creator>dodo</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[non php code]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[table row]]></category>
		<category><![CDATA[toggle checkbox]]></category>

		<guid isPermaLink="false">http://pure-essence.net/2008/02/26/jquery-plugin-tablerowcheckboxtoggle/</guid>
		<description><![CDATA[So since I&#8217;ve been playing with jQuery on my spare time while putting together an ajax site, I&#8217;ve decided to tackle a design issue I&#8217;ve run into many times at work with jQuery. This idea originally comes from phpMyAdmin. If you&#8217;ve used that software, you know that when you click on any table row, it [...]]]></description>
			<content:encoded><![CDATA[<p>So since I&#8217;ve been playing with jQuery on my spare time while putting together an ajax site, I&#8217;ve decided to tackle a design issue I&#8217;ve run into many times at work with jQuery. This idea originally comes from phpMyAdmin. If you&#8217;ve used that software, you know that when you click on any table row, it automatically toggles the checked state of the checkbox in the first cell. I think that&#8217;s an extremely user friendly thing to have since checkboxes are so small and hard to click on.</p>
<p>Let me present you my friends, my first jQuery plugin. It generically adds the toggle function to any table rows you specify based on the css class names. It will by default toggle any checkboxes within the table row. However, you can manually exclude checkboxes based on name, id or css classes in the script. In addition to the phpMyAdmin function, I added an initialization step in the script that correctly marks a row when it&#8217;s considered checked on page load.</p>
<h3>tableRowCheckboxToggle</h3>
<ul>
<li>It generically adds the toggle checkbox function to any table rows you specify based on the css class names.</li>
<li>It will by default toggle any checkboxes within the table row.</li>
<li>You can manually exclude checkboxes based on name, id or css classes in the script.</li>
<li>If there is any applicable checkboxes inside of the table row that are checked, it will apply a class to the table row.</li>
<li>It also marks table rows when there are checked applicable checkboxes on page load.</li>
</ul>
<p><a href="http://pure-essence.net/stuff/webTips/jquery.tableRowCheckboxToggle.zip">Download version 1.0</a></p>
<p><a href="http://pure-essence.net/stuff/webTips/jqueryTableRowCheckboxToggle.html">Live demonstration</a></p>
<p><a href="http://plugins.jquery.com/project/tableRowCheckboxToggle">jQuery plugin tableRowCheckboxToggle</a></p>
]]></content:encoded>
			<wfw:commentRss>http://pure-essence.net/2008/02/26/jquery-plugin-tablerowcheckboxtoggle/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
