IE extensibility is not working

IE extensibility is not working

Post by mabr » Sun, 04 Jun 2006 08:43:56


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
 
 
 

IE extensibility is not working

Post by bmFzc » Sun, 04 Jun 2006 21:04:01


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

 
 
 

IE extensibility is not working

Post by mabr » Mon, 05 Jun 2006 02:17:58

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
 
 
 

IE extensibility is not working

Post by bmFzc » Mon, 05 Jun 2006 05:35:01

Hi Mabra,
Try this links and compare the sample to your code and see which gone wrong:
http://www.yqcomputer.com/
Hope this helps
nass
 
 
 

IE extensibility is not working

Post by mabr » Mon, 05 Jun 2006 07:34:14

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