내가 콜백이 실행되지 없구요 다음과 같습니다 코드의 라인을 가지고있어 발사하지!JQuery와 콜백
건배 Shotemba 여기
전체 코드 :함수 GroupRepository() { }
GroupRepository.Add = 함수 (targetSelection, oGroup, addToPage) {
var tableToInsert = null;
var nGroupID = oGroup.nScopeOfWorkGroupID;
var sDescription = oGroup.sScopeOfWorkGroupDescription;
Eclipse3.GroupService.InsertGroup(Globals.N_JOB_ID, oGroup, InsertGroup_Success, InsertGroup_Error);
function InsertGroup_Success(response) {
nGroupID = parseInt(response.nIdentity);
var bConcurrencyId = response.bNewConcurrencyId;
//If this entry contains rows pull those rows out,
var rows = tableToInsert.find("tbody tr");
tableToInsert.remove();
oGroup.nScopeOfWorkGroupID = nGroupID;
oGroup.bConcurrencyId = bConcurrencyId;
var newGroupElement = addToPage(oGroup);
//add to the new group being created,
newGroupElement.find("tbody").append(rows);
//Globals.DisplayMessage("Insert Succeeded", "Your attempt to add a new record was successful.");
Globals.DisplayMessage("Insert Group Succeeded", "A new record was added.");
return this;
};
function InsertGroup_Error(error) {
Globals.HandleError("Item Group Failed", error);
};
}
"GroupRepository는"무엇 콜백을 확장하려면 새 함수를 선언? 제발, 우리에게 더 많은 코드를주세요. 또는 http://jsfiddle.net – reporter
이 GroupRepository는 무엇입니까? – vinothkr
@vinothkr을 되찾기위한 대가, 전체 코드는 다음과 같습니다. – santosh