Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Oct 20th, 2004, 10: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
Old Oct 20th, 2004, 11:57 AM   #2
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
i would advise against using active x as most people will not have it turned on....
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote
Old Oct 20th, 2004, 5:14 PM   #3
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
Ditto.. and to be frank it will not work with a lot of browsers, especially for us linux users
__________________
Clifford Matthew Roche <geek@cliffordroche.com>
Web Hosting: http://www.crd-hosting.com
Consulting: http://www.crdev-consulting.com
kurifu is offline   Reply With Quote
Reply

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 1:22 AM.

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