This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Is there any way to create beep sound in web application(Internet URL ) not in server machine. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Is there any way to create beep sound in web application(Internet URL ) not in server machine. " Watch "Is there any way to create beep sound in web application(Internet URL ) not in server machine. " New topic
Author

Is there any way to create beep sound in web application(Internet URL ) not in server machine.

sankar ramalingam
Greenhorn

Joined: Oct 02, 2008
Posts: 9

In my web application we are using handheld terminal for scanning the bar code. so i need to alert some beep sound or some other sound to the user.
What the API in java or applet. Please suggest on this matter. I have tried java awt System.out.println("\\007") and System.out.println("/007") it works only in server which is the ear file deployed machine.
Please do the needful.


SCJP 5.0
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175
    
    8

Check out the Toolkit API docs to see if it can help you beep (hint)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19656
    
  18

That too only works when you use an applet. Any other AWT / Swing code will run on the server.

If you want to play any sound on the client (browser) without using applets, you're stuck to whatever HTML and JavaScript allow you to do. Fortunately, that's still quite a bit, especially with HTML5's new audio element.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
sankar ramalingam
Greenhorn

Joined: Oct 02, 2008
Posts: 9

Many thanks experts for your helpful advice.

I have tried html embd tag in handheld that is not working which was working in my local systems (laptop) so how can i achieving this matter if you have any solution for this

please let me know.

Thanks again.
 
Consider Paul's rocket mass heater.
 
subject: Is there any way to create beep sound in web application(Internet URL ) not in server machine.
 
Similar Threads
Creating and building Standalone application
Applet in web application
How to play sound files from remote client in browser
System.out.println("\007") generates no sound
How to get Beep Sound during error??