Submit DAMN IT!

Categories: Uncategorized



Well, I discovered something new (for me that is). Got it from Chovy’s Blog.

javascript:

function checkForm(){
var form = document.someform;
someform.submit();
}

html:

form method=”post” action=”login.php” name=”someform”>
input type=”text” name=”woot” value=”">
input type=”button” name=”submit” value=”login” onclick=”checkForm();”>

When I clicked on the button.. an error appears someform.submit is not a function.
Apparently it collides with the button which is named “submit”. Changing the button name solves it.

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.