Results 1 to 3 of 3

Thread: Programatically Press Submit Button on HTML Form

  1. #1

    Thread Starter
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075

    Programatically Press Submit Button on HTML Form

    Can some tell me how to press a button on a HTML form through my program. I have tried:

    doc.forms(0).submit

    which works, but does not emulate the exact procedure like I need it to do.

    Here is the code for the button:

    <input type="Image" name="submit" src="http://...submit.gif" border="0">

    Thanks

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    What part of the procedure is being left out? I don't think I'm following.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3

    Thread Starter
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    Using the doc.forms(0).submit works, but not the same as actually pressing the submit button. That is the returned URL that qualifies whether or not the submission was successful is different. It doesn't matter though I ended up just tabbing through the page with SendKeys and it works fine.

Posting Permissions

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



Click Here to Expand Forum to Full Width