This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 9990
    
    7

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: 19541
    
  16

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there any way to create beep sound in web application(Internet URL ) not in server machine.
 
Similar Threads
How to play sound files from remote client in browser
System.out.println("\007") generates no sound
Applet in web application
Creating and building Standalone application
How to get Beep Sound during error??