Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

error when inserting code from the context menu

1 view
Skip to first unread message

Frank Sanborn

unread,
Nov 14, 2003, 3:01:01 PM11/14/03
to
Hello,

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

Igor Tandetnik

unread,
Nov 14, 2003, 4:52:15 PM11/14/03
to
"Frank Sanborn" <fr...@sensorware.com> wrote in message
news:442501c3aaea$07114f70$a601...@phx.gbl...

> // Get the window object where the context menu was opened.
> var oWindow = window.external.menuArguments;
>
> // 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;'));

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


0 new messages