Menu
I have a ajax page that saves the data after each button is pressed, aka, onChange event:
[code]
function SaveRecord(strFieldName, intLineSerial, strValue)
{
var url=”Order_Entry_Detail-save.asp?Value=” + strValue + “&UpdateDetail=Yes&FieldName=” + strFieldName + “&LineSerial=” + intLineSerial
xmlHttp=GetXmlHttpObject(stateChangedSaveRecord)
xmlHttp.open(“GET”, url , true)
xmlHttp.send(null)
}
If the & key is pressed, I wish to have an alert before the var url= line so I can exit teh function before it goes to the save and errors out. Any ideas on how to accomplish this?