Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebBrowser saveAs doesn't save changes
Message
De
27/11/2007 12:00:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01271426
Message ID:
01271479
Vues:
15
>I am using the webBrowser activeX as a WSIWYG HTML Editor. Everything works fine as far as loading, viewing files. I can make changes to a web page, but when I save, the saved file appears to be a copy of the original loaded file - my changes are not saved.
>
>I have tried both
> oIE.Document.execCommand("saveas")
> oIE.Execwb(4,2,"c:\temp\newname.html")
>
>Is there additional code I need to execute before saving? Thanks for your help.

You're better off with stuffing something like .document.header.outerHTML+.document.getElementByTag("body").outerhtml into a variable, then strtofile() that into your file. That way you're in control; IE has its own mind as to what is the actual file content of the document. I'm not entirely sure of the DOM above, it's more to just give you an idea how to do this.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform