<HEAD>
<LINK rel="stylesheet" type="text/css" HREF="/aw/styles/aw.css">
<script src="/aw/scripts/aw.js" type="text/javascript"></script>
<script>
AW.UI.ClearButton=AW.UI.Button.subclass();
AW.UI.ClearButton.create=function()
{
var obj=this.superclass.prototype;
obj.setControlText("CLEAR");
};
AW.UI.ClearButton.prototype.addTable=function(obj,rowArr,tabind)
{
if(tabind)
this.setAttribute("tabIndex",tabind);
this.setAttribute("hideFocus","false");
this.onControlClicked = function(){
this.clearthefields();
};
this.onKeySpace=this.onControlClicked;
this.onKeyEnter=this.onControlClicked;
this.clearthefields=function()
{
eval(rowArr+'()');
}
};
</script>
</HEAD>
<BODY>
HELLO WORLD
<form>
<Input type="text" name="floor" tabindex="2">
<Input type="text" name="floorDesc" tabindex="3">
<SCRIPT>
var clearbutton2 = new AW.UI.ClearButton;
clearbutton2.addTable(null,'clearRow',"4");
document.write(" " + clearbutton2);
var clearbutton = new AW.UI.ClearButton;
clearbutton.addTable(null,'clearRow',"5");
document.write(" " + clearbutton);
</SCRIPT>
</form>
</BODY>
<script>
function clearRow()
{
document.forms[0].floor.value='';
document.forms[0].floorDesc.value='';
}
</SCRIPT>
This topic is archived.