Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy data from Web Browser to VFP ?
Message
From
03/10/2002 16:38:14
 
 
To
03/10/2002 16:13:47
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00707341
Message ID:
00707559
Views:
19
Hi Marc,

local loIE, lnRun
loIE = createobject("internetexplorer.application")
loie.navigate2("d:\f\mist\Dyn.htm")
loIE.Visible = .t.
wait window "Loading" timeout 2
? loIE.document.all.length
for lnRun = 0 to loIE.document.all.length-1
*-- zero based Collection
? loIE.document.all.item[m.lnRun].innerText
next

works fine for me with an existing file like

[!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"]

[html]
[head]
[SCRIPT LANGUAGE=javascript]
function txtwrt(mytxt){
document.designmode = "On";
document.write (mytxt);
}
[/SCRIPT]
[/head]
[body]
[script]
txtwrt("I am a script in the body")
[/script]
[p]Normal text.[/p]
[p]I am the next paragraph[/p]
[button type="BUTTON" name="Butt1" value="Valu" onclick='txtwrt("I am the click.")'][/button]

[/body]

[/html]

you will have to change the tag-delimieters back
<=[, >=],

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform