We are doing our first Webap Ajax experiment and would appreciate some help on two topics.
1. We have created a form with a wizard, added a button that makes an AJAX call to the Webap to do something. After the call completes we would like to proceed to another page. Our code to make the call is:
Code:
function fUpdateLoc(sLoc) {
document.getElementById('LocDiv').innerHTML = sLoc;
}
function call_SetLoc(sNewLoc){
var oCall;
oCall = new vdf.ajax.VdfCall("oAjaxTest","get_SetLoc");
oCall.onFinished.addListener(handleResponse);
oCall.addParameter(sNewLoc,sNewLoc)
oCall.send(true);
}
function handleResponse(oEvent){
var sResult = oEvent.oSource.getReturnValue();
if(sResult !== ""){
fUpdateLoc(sResult);
' AT THIS POINT WE WOULD LIKE TO move to another webpage
}else{
fUpdateLoc("Error retrieving Loc !");
}
}
2. The second questions is how do we send a message to the DD to clear itself. Same as clickiing on the clear (eraser)button.
Thanks
fv