Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to send a 'filled out' form to a web site...
Message
De
30/08/1999 21:46:24
 
 
À
30/08/1999 19:05:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00258164
Message ID:
00259492
Vues:
29
>>>>The only complicated part is figuring out the names of the form variables. it can be a pain sometimes, but others it's pretty easy- If you give me the URL of the validation site you are working with, I could give it a shot for you-
>>>
>>>Well, just for kicks, let's say I want to enter "cars" in the search box on Yahoo.com... If I can do that, then I can submit an entry on any web form, correct?
>>>
>>>Thanks for your help
>>
>>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.
>
>Is there a way to keep IE invisible as this interaction takes place? I like the approach, but we can't have our operators getting on the web... surfing around... etc... I'd like to keep IE completely invisible and open it only during the interaction, then close it immediately.
>
>Thanks again

Of course- IE stays invisible until you set it's visible property to .T.. If you instanciate it, do your business, and then release it, the user will never know that the program went to the internet at all.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform