IE extensibility is not working

  • Thread starter Thread starter mabra
  • Start date Start date
M

mabra

Hi !

IE is mostly not very famous with it's extensibility. There are some
small things you can do, like registering toobar buttons and context
menu items.

But excactly these are not working as expected.
For example the following statements raise a script error:

var ok = window.clipboardData.setData("Text", "Hallo!");
var shell = new ActiveXObject("WScript.Shell");

The first works fine in a standalone html-page, the latter well in
the shell.

Any help would be really very welcome!

Thanks and
best regards,
Manfred
 
mabra said:
Hi !

IE is mostly not very famous with it's extensibility. There are some
small things you can do, like registering toobar buttons and context
menu items.

But excactly these are not working as expected.
For example the following statements raise a script error:

var ok = window.clipboardData.setData("Text", "Hallo!");
var shell = new ActiveXObject("WScript.Shell");

The first works fine in a standalone html-page, the latter well in
the shell.

Any help would be really very welcome!

Thanks and
best regards,
Manfred

Hi Manfred,
Do you have the Latest Java Installed on your machine from this site:
http://www.sun.com/
and also the Latest from microsoft updates to run you Java code or
<Javascript>
what OS you have and IE version.
Thanks
nass
 
Hi !

Thanks for your answer. But this is "javascript" or "jscript". Java is
NOT in the game here.

For example:

var s = document.selection.createRange().text;

works as expected.
This is a context-menu entry created via registry-entry.
There seems to be an undocumented restriction for the objects, which can
be used inside this scripts :-)

Best regards,
Manfred
 
Hi nass,

sorry, I am on script since ten years and I cannot see any new in this
article.

My statement:

var shell = new ActiveXObject("WScript.Shell");

dies with "automation server cannot create object". Regard, this script
is called in/by Internet Explorer. If I use it as a "shell" script
[wscript/cscript] it works well!

Thanks,
mabra
 
Back
Top