🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #930

Gambit TCppWebBrowser / IHTMLDocument2 / form->submit() problem

#930
From: Caleb
Date: Wed, 28 Dec 2005 01:13
38 lines
2010 bytes
Hello:

I am trying to subimt a form using code that normally works.

It did not work on a certain page in my project. 

I then iterated though the elements in the document to locate
 the submit button, tried element->click() and this too did not 
work.



However: I noticed that if I clicked the button manually, the 
page would not change but the button would appear to click.  So 
I made a separate test program with just a TCppWebBrowser in the 
form and manually navigated to the page in question and it DID 
behave as expected when clicked.


There is some logic in the automated program -- not the test 
program -- where the browser is saved to a text file.  In the 
automated program it starts at page A and when that is processed 
it may navigate to a page B or a page C.  The logic is vanilla 
code often posted in this group that saves the document to a 
stream and then saves it to a file.  This logic checks to see if 
the browser navigated to page B or page C.


Is there any way that saving the browser contents to file would 
effect the ability to submit the form?  As I said the form 
submit logic usually works.  The page is a simple "I agree" page 
wih only one submit button.


Thank you,

Caleb
Technical Details
Message-ID: <43b1f4db$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,7c7a7f81abd81dbe,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Caleb" <nospam@nospam.com>
Sender: "Caleb" <nospam@nospam.com>
Reply-To: "Caleb" <nospam@nospam.com>
Subject: Gambit TCppWebBrowser  / IHTMLDocument2 / form->submit() problem
Newsgroups: borland.public.cppbuilder.internet.web
X-User-Info: 71.99.37.67     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <43b1f4db$1@newsgroups.borland.com>
Date: 27 Dec 2005 18:13:47 -0700
X-Trace: newsgroups.borland.com 1135736027 207.105.83.66 (27 Dec 2005 18:13:47 -0700)
Lines: 38
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail