Posted: Tue Jan 08, 2008 3:27 pm
I used to have a form that submitted to a script. It did that the same way many forms do it, w\ submit buttons. However, in an attempt to make the page look less shitty, I replaced the button w\ a graphic that calls javascript's submit function when clicked. I know I'm grabbing my form whether it be from document.myFormName, document.getElementById("myFormId"), or
document.getElementsByName("mfFormName.") cos it returns the correct name, id, & form elements. However, tacking on .submit() to any of the above results in the error that no such function exists.
Coded up a simple example just to make sure JS wasn't fucked up itself. It's not. But there's some shit going on s.t. I cannot grab the form properly cos it's not letting me call submit (which I know exists for form objects in DOM). Has anyone run into this kinda shyte before?
Edited By Malcolm on 1199824268
document.getElementsByName("mfFormName.") cos it returns the correct name, id, & form elements. However, tacking on .submit() to any of the above results in the error that no such function exists.
Coded up a simple example just to make sure JS wasn't fucked up itself. It's not. But there's some shit going on s.t. I cannot grab the form properly cos it's not letting me call submit (which I know exists for form objects in DOM). Has anyone run into this kinda shyte before?
Edited By Malcolm on 1199824268