Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send data to a Web Page
Message
From
25/02/2011 13:35:13
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01500623
Message ID:
01501856
Views:
52
Anatoliy:

This was my success:

oWeb=CREATEOBJECT("InternetExplorer.Application")
* /// crawling visibility: 1= visible, 2= invisible ///*
oWeb.visible=1
* //// go to the main page ////// *
oWeb.navigate2("http://www.testpost.php")
oweb.document.forms(0)."dato1".value='NUEVA PRUEBA'
oweb.document.forms(0)."dato2".value='PARA CONFIRMAR'
oWeb.Quit()
oWeb=null

As you see I had to use "internetexplorer" but, as your prescription, each one apparently know 1 (one) or two properties or methods. No more. I looked for "internetexplorer.application" and... Guess it! All entries from "universal thread". Someone ask the same question I think: Where are listed its properties and methods??? Those who know How do they know? Books?

Your suggestion is the same. Your links don't work. MS doesn't want us to use that object?

"My friend" web developper told me "dato1" and "dato2" he doesn't know VFP fortunatelly (if so he'd probably do all the system)

With only "dato1" and "dato2" the code above worked but the next doesn't

oweb = CREATEOBJECT("Msxml2.XMLHTTP")
oweb.open("POST", "http://www.testpost.php", .F.)
enviar='"dato1="'+'así también? & "dato2="'+'no lo podria creer'
oweb.send(enviar)
oWeb.quit()
oweb=null

This is not the only code I tested but it's the last one.

Oweb.quit() is not a method (doesn't work) and I don't have listed them so I don't know how to close.

I'm still here. I didn't give up yet.

Thank you

Héctor
Previous
Reply
Map
View

Click here to load this message in the networking platform