#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    16
    Hello there!
    I have a problem! Here goes...
    I want to submit a form like this:
    -------------------------------------------
    <FORM ACTION="some.script" METHOD="post" name="SubmitLink">
    <input type="hidden" name="Action" value="AddLink">
    <a class="mymaster" href="javascript:document.forms.SubmitLink.submit();">submit</a>
    </form>
    -------------------------------------------
    But when i do so, I get this error:
    -------------------------------------------
    Error: Object does not support this property or method.

    What do I do wrong?
    NB: I know that this properbly only works in IE...
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    Have you tried document.form[0].submit();?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 1999
    Location
    Denmark
    Posts
    83
    Rep Power
    16
    jaix...

    I found out!! I have made a hidden fiele with the name: "submit"

    but thanks anyway

Similar Threads

  1. arrayin in forms (html, javascript)
    By elstudion in forum JavaScript Development
    Replies: 6
    Last Post: October 7th, 2003, 09:56 PM
  2. forms & javascript
    By Sotonin in forum JavaScript Development
    Replies: 9
    Last Post: May 11th, 2003, 02:48 PM
  3. PHP javascript conflict - checkboxes array forms
    By smakz in forum JavaScript Development
    Replies: 11
    Last Post: November 9th, 2002, 07:56 PM
  4. PHP, forms, arrays and JavaScript
    By toddschw in forum JavaScript Development
    Replies: 4
    Last Post: July 27th, 2002, 06:59 PM
  5. JavaScript, MySQL and Forms
    By TD_Paladin in forum JavaScript Development
    Replies: 2
    Last Post: August 14th, 2001, 03:54 AM

IMN logo majestic logo threadwatch logo seochat tools logo