GeeCON Prague 2014*
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
Author

JavaScript ActiveX problem Through Server

Akshayan Venkatesh
Greenhorn

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
Marshal

Joined: Mar 22, 2005
Posts: 42056
    
  64
How did you install the ActiveX control? Are you certain that the browser knows where/how to find it?


Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Jan 10, 2002
Posts: 61315
    
  66

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JavaScript ActiveX problem Through Server