MS Web Browser Control
Can anyone direct me to an example, or documentation for how to write on-the-fly generated HTML to a web browser control, that allows you to use file system based html component files?
WSH.Shell should give you access to the filesystem. However, use of this object requires lowering the security settings of the browser to allow scripting of Active X controls not marked as safe for scripting. So, essentially, you would only want to use this for an app served from an intranet web server behind a firewall and you would want to change that security setting for the clients only for the Local Intranet security zone.
have you looked into HTAs? (HTML Applications)? If you're in a controlled environment, they're basically 'applications' running in a webbrowser like context with very open security.
Are HTA's the successors of ActiveX Documents? Any good link on learning about those?
See Duncan's link for more info.
I have experimented a little with HTA's, but that's not exactly what I am looking for. I am using the web browser control as one part of a larger application. I don't know how to overcome the security issue of writing HTML to the web browser's document, and using .htc's from the filesystem.
if you're hosting the weboc, you can do other things. load both the page and the htc from the filesystem, but have the hosting app overwrite the content in the page, or have the page just call document.write(window.external.pagecontentshere).
Fog Creek Home