spikesource hints'n'tips

Our Top Tags

                                       

Mailing List

Keep uptodate with the latest hints'n' tips as they are published by signing up to our mailing list.

Our RSS Feeds








Latest Linux News

Open Source Business Cluster Launched in New South Wales

Wednesday, 19 November 2008
IT Wire: "Headquarters in Sydney, New South Wales, an Open Source Business Cluster was announced. The aim of the cluster is to more effectively market, deliver and provide support for Open Source tech

PHP Zend Framework 1.7 adds Adobe support

Wednesday, 19 November 2008
Netstat -vat: "The open source Zend Framework 1.7 is now available expanding the PHP framework to work better with Adobe Flex and AIR applications."

Progex 8.20 ScreenShots

Wednesday, 19 November 2008
Linux Dynasty: "Here is a fairly new Linux distribution and like many new ones out there this distribution is based off of Ubuntu Linux. The installation was just an easy 7 steps just as most other Ub

Zeroshell Delivers Big Network Services in a Small Package

Wednesday, 19 November 2008
LinuxPlanet: "What gives you a firewall, load-balancing, QoS, 3G support, RADIUS, wireless access point, HTTP proxy, VPN, VLAN, PPPoE, captive portal, and a host of other useful security, authenticati

Improve Your Intelligence with Brain Workshop

Wednesday, 19 November 2008
Linux Journal: "Everywhere you turn there are "brain training" games that claim to help you "lower your brain age" or "boost your brain power" and other such marketing hyperbole. Much like saying a ce

Latest Digg Entries

In my Javascript I keep getting "submit is not a function". What did I do?

posted Wednesday, 23 August 2006
If you have a Javascript function, doing some form validation for example, and at the end, it will submit the form, and it suddenly stops working, throwing up an error message in the console box that reads "submit is not a function" then you have probably mis-named one of your form fields.

The most common being that you've accidentally named a submit field as 'submit'.
<input type="submit" name="submit" value=" save ">
This is where the problem is.  When you make a call to submit the form using:
document.getElementById("aform").submit();
It will attempt to call the submit() function of the <input> field and not the <form> of the same name.

resolution inspired from http://www.spiration.co.uk/post/1232

tags:    

links: digg this    del.icio.us    technorati    




1. lsi left...
Saturday, 24 February 2007 12:16 pm

nice, solved my prob!


Related Posts

In my Javascript I keep getting "submit is not a function". What did I do?

Wednesday, 23 August 2006 10:57 A GMT
If you find you keep getting a javascript warning about "submit is not a function" and cannot figure out why then worry no more. Its a subtle issue.