I am getting the following error "Could not complete the
following operation due to error 8000000a" when I insert a
modelless dialog from the context menu.
I created my own context menu entry by adding an entry
HKCU\SOFTWARE\MICROSOFT\INTERNET EXPLORER\MenuExt reg
key. I point the context menu to c:\program
files\sensorware\authoring\inserttimeline.htm
Here is the code for inserttimeline.htm:
<SCRIPT LANGUAGE = "JavaScript">
// This script is called when someone is loading the
Active-CD timeline editor.
// Get the window object where the context menu was opened.
var oWindow = window.external.menuArguments;
// Get the document object exposed through oWindow.
var oDocument = oWindow.document;
// open a modelless dialog with the timeline editor
oDocument.body.insertAdjacentHTML('BeforeEnd',
window.showModelessDialog('c:\\program
files\\sensorware\\authoring\\timeline.htm' ,'' ,'dialogHei
ght: 300px; dialogWidth: 750px; dialogTop: 729px;
dialogLeft: 0px; edge: Raised; center: Yes; help: No;
resizable: No; status: Yes;'));
</SCRIPT>
I have verified that the showmodellessdialog works from an
empty page with a button that inserts the code into the
document. Are there anyway work arounds this?
Thanks for your help
Frank Sanborn
President
Sensorware, LLC
Why don't you simply do oWindow.showModelessDialog(...) ? What's the
point of insertAdjacentHTML business? It's not even a valid HTML
fragment you are inserting.
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken