Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Oct 20th, 2004, 9:27 AM   #1
TD04
Newbie
 
Join Date: Oct 2004
Posts: 1
Rep Power: 0 TD04 is on a distinguished road
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);
}
TD04 is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:00 PM.

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