Submitting Forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mtek

    Submitting Forms


    Hi,

    I have a generic routine that is called by many forms, and probably by
    many browsers. The javascript performs some validation on the form
    passed in and then issues the command 'submit()'.

    I am getting an error that says "submit() is not defined"

    I'm lost. This is a generic routine, so passing in the form is a
    must.......

    Any thoughts or suggestions?

    Thanks!!

    john
  • Dan Rumney

    #2
    Re: Submitting Forms

    I have a generic routine that is called by many forms, and probably by
    many browsers. The javascript performs some validation on the form
    passed in and then issues the command 'submit()'.
    >
    I am getting an error that says "submit() is not defined"
    >
    I'm lost. This is a generic routine, so passing in the form is a
    must.......
    >
    Any thoughts or suggestions?
    submit() is a method on a form object... you can't just call it on its own

    If you provide some sample code which demonstrates the problem that
    you're having, that would be helpful.

    Thanks

    Comment

    Working...