Result of expression ‘document.forms[0].submit’ [[object HTMLInputElement]] is not a function.
Tuesday, September 15th, 2009 Posted in Programming, jQuery, javascript | CommentsI was trying to add a small delay into my form submission like so: <form ... onsubmit="setTimeout('document.forms[0].submit()',2000);return false;"> 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 ...
Using jQuery and Prototype together while avoiding the dreaded element.dispatchEvent error
Friday, August 28th, 2009 Posted in Google, Programming, jQuery | CommentsHere is what I do to avoid the dreaded "element.dispatchEvent is not a function" error. I load jQuery first, Prototype second, and then I use jQuery( ) instead of $( ) for all my jQuery calls. <!-- Set up ...
Fix Margins in IE6 with jQuery
Friday, July 25th, 2008 Posted in jQuery | CommentsIE6'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 ...