Using HTC's in design mode
From: Colin Green (bughunter_at_hotmail.com)
Date: 07/05/04
- Next message: Bill: "Re: Backspace key being trapped..."
- Previous message: Colin Green: "AxWebbrowser controls share HTTP session"
- Messages sorted by: [ date ] [ thread ]
Date: 5 Jul 2004 05:29:05 -0700
Here is another problem with MSHTML I have been unable to resolve,
originally posted to a less apt ng...
I noticed that when I load a HTML document that contains HTML
Components (HTCs) into IE6, that the HTC elements disappear if I
programatically switch the HTML document into design mode. Very simply
I do this by setting IHTMLDocument2.designMode=true
An alternative way of doing this is to ensure there is a
contentEditable="true" attribute on the <body> element in the document
before I load it. This does solve this particular problem, but this
causes problems for me elsewhere, e.g. I am currently using
IPersistStreamInit.IsDirty() to determine if the document has been
edited - if I use contentEditable="true" then this flag no longer
reflects the state of the document - it is as though the
IPersistStreamInit object becomes disconnected (HandsOffStrorage?)
from the underlying HTML Document.
Some possible problems are that (I think I read) scripting is disabled
with designMode on, perhaps this prevents the HTCs from rendering.
Another possibility lies with security settings and internet zones,
could this cause HTC to not render?
Perhaps if I could place the HTC definitions within the document I am
trying to render this would solve the problem? Unfortunately I can't
see any way of doing this.
Any ideas?
Thanks in advance,
Colin Green
- Next message: Bill: "Re: Backspace key being trapped..."
- Previous message: Colin Green: "AxWebbrowser controls share HTTP session"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|