Autosubmit failing....

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

    Autosubmit failing....

    Hello all,
    I'm trying to automate the submission of a page after a specific
    amount of time, but each of the attempts below do not work. Any ideas
    would be great -

    Thanks,
    Christine

    function Timer() {
    window.status=" ";
    gTimerCount--;
    if (gTimerCount > 0)
    {
    if (gTimerCount == 300) TimeWarning();
    window.status = "Time Remaining: " +
    ConvertNum(gTim erCount);
    gTimer=window.s etTimeout("Time r()",1000);
    }
    else{
    window.document .form.submit.cl ick();}
    // document.form.s ubmit.click();}
    // document.form.s ubmit();}
    }
  • Lee

    #2
    Re: Autosubmit failing....

    Christine said:[color=blue]
    >
    >Hello all,
    > I'm trying to automate the submission of a page after a specific
    >amount of time, but each of the attempts below do not work. Any ideas
    >would be great -[/color]

    Unless your form is named "form", you can't refer to it as document.form.
    Assuming it's the first (probably only) form on the page, this should work:

    document.forms[0].submit();

    Comment

    • Christine

      #3
      Re: Autosubmit failing....

      Lee <REM0VElbspamtr ap@cox.net> wrote in message news:<c0eadh05u 1@drn.newsguy.c om>...[color=blue]
      > Christine said:[color=green]
      > >
      > >Hello all,
      > > I'm trying to automate the submission of a page after a specific
      > >amount of time, but each of the attempts below do not work. Any ideas
      > >would be great -[/color]
      >
      > Unless your form is named "form", you can't refer to it as document.form.
      > Assuming it's the first (probably only) form on the page, this should work:
      >
      > document.forms[0].submit();[/color]


      Thanks, that did it!
      --Christine

      Comment

      Working...