maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Display service response error message on application as an alert.

Expand the object and you should see the entire content.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Display service response error message on application as an alert.

Your error is in responseText

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

so would I write (response text error not found) in the java?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Display service response error message on application as an alert.

You would be using JavaScript.

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

Could you show me how to write the code?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Display service response error message on application as an alert.

jqXHR.responseText

or

jqXHR.statutText

Robert Larsen
Posts: 0
Joined: Fri Aug 02, 2013 6:56 am

Display service response error message on application as an alert.

Ok, tried writing that on service complete event and that did not work. Do I need to write that code to a local variable, or somewhere else?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Display service response error message on application as an alert.

Just that won't work... it should be:

alert (jqXHR.statusText);

or

console.log(jqXHR.statusText);

I'd definitely recommend to try some basic JavaScript tutorials before you start building mobile apps in Appery.io

Return to “Issues”