This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 41133
    
  45
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: 60791
    
  65

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
 
Similar Threads
Error while invoking SAPI with Java Script
Limit File Size or Request Size
Html:button is not working in Mozilla?
disabling IE security pop up window
java-COM bridge