Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to stuff HTML into a browser control
Message
De
22/09/2001 12:20:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00559092
Message ID:
00559661
Vues:
19
I did that in the first try, had a thisform.obrowser.navigate("about:blank"), same result. The value in the .inner html had just the opening and closing html and body tags, plus the cr/lf pair between. So it was initialised.

The help I get on rightclick on the bare browser control takes me to FFC wrapper control help, which actually has just a list of properties without much of explanation.

The trouble with using the temp files is that you can't delete them right away, because the browser control keeps them open for a while, so it involves some housekeeping.

>Try to load from disk some sort of empty HTML file with empty Body, hen assign the body through objects interface. You still need a file, but only one that is fixed.
>
>>>Hi!
>>>
>>>Try to use something like ...Document.All(0).InnerHTML = "HTML here". I guess Document object in the WEB Browser control is the same reference as a Document object for a JavaScript. In IE5.0 and higher you can change the layout of page by assigning the tags to innerHTML property of several container objects on HTML page, include BODY. I do not know exactly, however, how to access the BODY element from the Document object.
>>
>>Worked, sort of. The property gets assigned, but nothing shows up. It probably takes setting several other properties and getting the object into a state when it would accept this. At times it complained of the .document property being totally absent - I'm getting this all the time with automation objects, you can never be sure if all of its objects or collections will exist. It could return .null. at least, but no, it has to raise an error.
>>
>>I've stuffed the _browser object from FFC for the time being, and seems to be dumping the memo into a html file is the only way, at least until search server on UT is back in business.

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