how to generate error on xui.Ajax callback

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...

how to generate error on xui.Ajax callback

Postby tomy300 » Fri May 16, 2014 11:51 pm

Hi,

how to generate error on xui.ajax callback via php

on ajax jquery we use, to throw an error.
<?
header('HTTP/1.1 500 Internal Server Error');
?>

but this does't seem to work. ?? any idea?
tomy300
 
Posts: 70
Joined: Sat Nov 09, 2013 12:27 am

Re: how to generate error on xui.Ajax callback

Postby support » Sat May 17, 2014 1:11 am

In onFail fuction, you can get error message "Error: XMLHTTP returns--500".

javascript code
xui.Ajax("test.php", "", function(){
console.log("OK",arguments);
}, function(){
console.log("KO",arguments);
}).start();
support
 
Posts: 352
Joined: Sat Apr 27, 2013 9:22 am

Re: how to generate error on xui.Ajax callback

Postby tomy300 » Mon May 26, 2014 7:06 pm

thanks it's work
tomy300
 
Posts: 70
Joined: Sat Nov 09, 2013 12:27 am


Return to CrossUI for Desktop Apps

Who is online

Users browsing this forum: No registered users and 0 guests

cron