File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39547
    
  27
How did you install the ActiveX control? Are you certain that the browser knows where/how to find it?


Ping & DNS - updated with new look and Ping home screen widget
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: 60050
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaScript ActiveX problem Through Server
 
Similar Threads
Html:button is not working in Mozilla?
Limit File Size or Request Size
java-COM bridge
Error while invoking SAPI with Java Script
disabling IE security pop up window