Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Web browser (again)
Message
De
22/06/2007 14:48:47
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Web browser (again)
Divers
Thread ID:
01235092
Message ID:
01235092
Vues:
96
I've got a WebBrowser ActiveX control (oWB) on a VFP form. After I oWB.navigate2("about:blank") I do a oWB.document.write(some HTML here...) and all is fine, except:

I don't want the disabled vertical scrollbar showing. In the past, I've eliminated it by setting
<body scroll="no">
when I created an actual HTML file to navigate to. Now that I'm writing directly to the document, I cannot seem to access the body to try to set scroll="no".

I then created a simple HTML file that contained:
<html>
   <head>
   </head>
   <body scroll="no">
   </body>
</html>
After navigating to it I figured that I could document.write(whatever html here) and that the HTML that I'd written out would simply be put into the content of the body. Wrong! The HTML that was there from the temporary file was replaced.

Does anyone know how I can preserve the content of my temporary HTML file and then do a document.write to fill in the body? If not, how can I manipulate the body attributes (like scroll="no") with document.write()?

TIA.
Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform