In my login form I am able to call the php file but the issue is this; The request is being sent but there is no response coming back from that php file. I want to know what should be the callback function to get the response…
Need help !
Can anyone provide me with some example ?
I am giving the sample code of my application !!! I have used two methods but of no use. Please help !
function initLogin() {
isc.showLoginDialog(function (credentials, dialogCallback) {
if (credentials == null) return; // dismissed
// send credentials
sendCredentials(credentials, function (loginSucceeded) {
// report success or failure
dialogCallback(loginSucceeded);
})
})
function sendCredentials(credentials){
isc.RPCManager.sendRequest(isc.RPCRequest.create({
actionURL: "checkcred.php",
httpMethod: "GET",
contentType: "text/xml",
params: {name: credentials.username,
pass: credentials.password}
}));
}}
function initLogin() {
isc.showLoginDialog(function (credentials, dialogCallBack) {
var request = isc.RPCRequest.create({
actionURL: "checkcred.php",
httpMethod: "GET",
contentType: "text/xml",
params: {name: credentials.username,
pass: credentials.password},
useSimpleHttp: false,
serverOutputAsString: true,
callback: "checkLogin(rpcResponse, rpcRequest)",
myDialogCallback : "dialogCallback"
})
isc.RPCManager.sendRequest(request);
})
}
function checkLogin(response, request) {
level = true;
request.myDialogCallback(level);
}