Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   JavaScript and Client-Side Browser Scripting (http://www.programmingforums.org/forum23.html)
-   -   Beep Active-x Problem (http://www.programmingforums.org/showthread.php?t=914)

TD04 Oct 20th, 2004 9:27 AM

I use alittle javascript to generate sounds, however...
I found that as default it seems this active x control WScript.Shell is not "secure" in IE settings.
When I change security settings in I.E. to initialize and run unsafe active-x controlls it works fine on all computers.
Somhow it runs on my machine without that setting, so must have "signed" the controll to safe somhow locally..
How could I make this active-x control safe??
Or is there another way or another controll I can use which is default set to safe to generate sounds?

Thanks//Martin


function pip(){
var wsh = new ActiveXObject('WScript.Shell');
var beep = 'c:\\WINNT\\Media\\Utopia - starta Windows.WAV'
wsh.Run ('sndrec32 /play /close ' + beep ,0, true);
}

Berto Oct 20th, 2004 10:57 AM

i would advise against using active x as most people will not have it turned on....

kurifu Oct 20th, 2004 4:14 PM

Ditto.. and to be frank it will not work with a lot of browsers, especially for us linux users :P


All times are GMT -5. The time now is 11:01 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC