Posts Tagged ‘JavaScript’

Form submit from JavaScript

Be careful: if you want to submit a form from Javascript using something like

this.form.submit();

or

document.forms[ myFormName ].submit();

and it gives you a nasty error like

submit is not a function

don’t despair, just:

look at the HTML source code:

<input id="submit" name="submit" value="Send to developer" type="submit" />

change the name of the button to something else, like:

<input id="mySubmitButton" name="mySubmitButton" value="Send to [...]

JavaScript for PHP developers

If you’re a PHP developer and you find it difficult to get used to all the insides of JavaScript, you might need PHP.JS, developed by Kevin van Zonneveld.