Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to send a 'filled out' form to a web site...
Message
 
To
03/09/1999 16:53:22
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00258164
Message ID:
00276345
Views:
26
>>>Using IE, you would do this:
>>>oIE = CREATEOBJECT("InternetExplorer.Application")
>>>oIE.Navigate("www.Yahoo.com")
>>>oIE.Document.Forms(0).p.Value = "Cars"
>>>oIE.Document.Forms(0).Submit
>>>?oIE.Document.Body.InnerHTML
>>>
>>>Using wwIPStuff, you would do this:
>>>
>>>oIP = CREATEOBJECT("wwIPStuff")
>>>oIP.HTTPConnect("www.yahoo.com")
>>>oIP.AddPostKey("p","cars")
>>>lcBuffer = ""
>>>lnResult = oIP.HTTPGetEx("http://search.yahoo.com/bin/search",@lcBuffer)
>>>?lcBuffer
>>>
>>>Note- Yahoo's search form is wierd- it doesn't look like conventional search forms- the action is not clear. The wwIPStuff method I posted gets you results, but the results are "page is not found" or something. If you have the option to use IE for something like this, I would. It also makes parsing the results easier because you can filter out the HTML tags by using the Innertext property of any HTML element, including BODY.

Taking this one step further, how can I create an instance of the ActiveX IE control programatically to do some in-form browsing? I can draw them on a form all day and use them (still not very well, but I'm getting there...), but want to create one on-the-fly. Help?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform