![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2004
Posts: 1
Rep Power: 0
![]() |
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); } |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
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 |
|
|
|
|
|
#3 |
|
Expert Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|