Text box beep

Anyone have any idea how i can make the following textbox called rfidentry produce a beep noise upon a string of numbers being input into it?


<%
workorder = Request.Form("workorder")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title> ############### </title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
	<meta name="description" content=" add page description... "  />
	<meta name="keywords" content=" add keywords... " />
	

	<link href="_layout/style.css" rel="stylesheet" type="text/css" />
	
    <style type="text/css">
        #Text1
        {
            width: 234px;
            height: 26px;
        }
    </style>
	
    </head>
<body onLoad="document.rfidentry.rfid.focus()">
	<div class="logo" onclick="document.location='default.asp';">
    </div>
	
	<div id="round_top"></div> 
	
	<div id="content" class="fixed">
	  <div id="maincontent" class="fixed">

	
		<h2>Shop Floor Data System&nbsp;</h2>
			
		<h3 class="maincontent" style="margin-top:15%">Please swipe your <bold>T & A fob</bold> at the reader.
		
		<form name="rfidentry" action="works_order.asp" method="POST">
        <input type="password" name="rfid" style="width: 321px; height: 26px"/>
        <input type="hidden" name="workorder" value="<%=workorder%>"/>
	
        </form>
		<br>
		<img class="img-center" src="_layout/images/rfid.gif" style="width: 210px; height: 210px"/>
		<br>
		</h3>

 	  
	  </div>

	</div>
	
</body>
</html>


so which browsers support HTML 5?

If you want to start making use of some HTML5 features, you can access the audio API directly.


var snd = new Audio("beep.mp3");
snd.play();

Hey

thanks for the replies. The system we have created is basically an interface for our ERP system. It is an electronic traveller system. Everyone employee has an RFID tag and this is how we are identifying who works on what job.

It would be helpful for the people working on the shop floor if it simply beeped when they scanned there tag, this is because when you actually swipe your tag it is not always clear that it has swiped ok, i know it has and it works fine , however its just re assurance for the user more than anything.

If it is too much of a faff we will probably just leave it, but it has turned out to be not as simple as we first thought :frowning:

This is possible, though maybe not practical.
I can’t recall what/where I read about it, but you would need to record your beep as an MP3 file (or whatever) which can be triggered with JavaScript. If you are lucky, and the volume is on/correct…
I’ll post again if I find a sensible reference.

There are other solutions, but you should test them out to ensure that they work as best as possible for you.

Demonstration of Different Ways to Play a Sound from a Web Page
http://www.phon.ucl.ac.uk/home/mark/audio/play.htm

Paul, I am guessing it will beep because of error. What will you do for deaf people or people at work w/o sound? Just a thought :slight_smile:

unfortuantely i can only use IE8

i am thinking maybe flash may offer a solution

i know nothing of javascript so will probably struggle unless i can find a complete solution

Most of them now. Here’s a comparison of how different web browsers stack up.
http://www.wikipedia.org/wiki/Comparison_of_layout_engines_(HTML5)