SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript submit() don't work

    Hi, I created ajax (prototype) and javascript validation that checks a form, I use onclick event in a button that calls a function that calls another ajax response function, after I do validation and everything is ok, I try to submit the form by using the submit() function:
    document.reg_form.submit();
    this doesn't do anything.
    I tried to do the same with reset to try to see where the problem is and it worked:
    document.reg_form.reset();
    does anybody knows what's the issue?
    thanks!

  2. #2
    SitePoint Member
    Join Date
    Apr 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, I found the issue,
    uchi mama!!
    it was because the name of the button was submit and the script thought I'm calling the button, i changed the button name and it works.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •