In the form the following field is there:
Code: Select all
Name : <input type="text" onchange="callSyncAjax(this)" /><input type="button" onclick="doSave()" value="Save"/>
In the java script :
Code: Select all
function callSyncAjax(obj) {
//some syncronized ajax function here return true;
}
function doSave() {
//form submit functionaly here
}
Now i enter some name in name field and with out clicking any where or without tabbing i clicked on save button but in Fire Fox the doSave() function is not called. But i clicked again then its called.
can any one help on this? why for first time the doSave() method not called?