File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript ActiveX problem Through Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript ActiveX problem Through Server" Watch "JavaScript ActiveX problem Through Server" New topic

JavaScript ActiveX problem Through Server

Akshayan Venkatesh

Joined: Apr 13, 2006
Posts: 26
This is my javascript function . Speech.html or Speech.jsp. if i store this html file local and run the same in locally through Internet Explorer it works fine.

but the problem if i access the speech file through server it cant work. the ActiveX control is not working .

This is my function.. .. I have enabled all the security settings in IE

also it is working fine in the eclipse browser itself. through server.

This is Speech Fucnction

function SpeakText()
var my_test = "T";
new ActiveXObject("SAPI.SpVoice").Speak( my_test, 1 );

Javascript Error : Automation server cannot create Object

please give me a valuable suggestion.

Thanks in advance
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
How did you install the ActiveX control? Are you certain that the browser knows where/how to find it?
Anirvan Majumdar
Ranch Hand

Joined: Feb 22, 2005
Posts: 261
This might be a case of the browser preventing the Javascript from executing a cross-domain call. It's quite a prevalent issue when writing AJAX code. Incidentally, in the case of AJAX too, a similar sort of Javascript error occurs when an XMLHTTPRequest is created [in case of IE, that is a new ActiveXObject]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63837

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: JavaScript ActiveX problem Through Server
It's not a secret anymore!