Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VFP to automatically 'submit' a web form to a serv
Message
From
17/11/2002 06:13:30
 
 
To
16/11/2002 20:45:14
Dave Nantais
Light speed database solutions
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00723582
Message ID:
00723626
Views:
24
This message has been marked as the solution to the initial question of the thread.
Hi!

Try:

thisform.WEBBrowser.document.MyFormName.submit()

"submit" is a method of DOM object - <FORM>, "MyFormName" is that form's name.

Basically, with using of "document" property of WEB Browser control you can access ANY PEM's similar to what you can access in the IE using JavaScript. You can find a complete manual on all PEMs and objects of IE and DOM in the MSDN.

HTH.


>I am able to have a Web Browswer run within a VFP form using the _WebView.vcx
>
>I can examine the incoming HTML source and that's great.
>
>I have information in VFP tables I'd like automatically placed onto a web form and I'd like VFP to programmatically hit the 'submit' button on the web form.
>
>I know how to parse the HTML to extract the information I need from web pages I am surfing , BUT I do not know how to 'simulate' a 'submit' button press on the web page.
>
>Any ideas ?
>TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform