Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy data from Web Browser to VFP ?
Message
De
03/10/2002 16:38:14
 
 
À
03/10/2002 16:13:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00707341
Message ID:
00707559
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform