Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebBrowser saveAs doesn't save changes
Message
From
27/11/2007 12:00:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Miscellaneous
Thread ID:
01271426
Message ID:
01271479
Views:
14
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform