Page 1 of 1

How to handle service respose in JS

Posted: Thu Nov 01, 2012 7:06 am
by Arsalan Sarwer

I am working on simple user validation by email and password, for this I use REST service.

On its "success" event, I user custom javascript, and make simple alert, just for the confirmation, but nothing happens;

function(data){

alert("abc");
}

After that I modified the success event as "navigate to page", but still current page remains,

also progess bar shows when services runs, but after that nothing happens.

Thankyou


How to handle service respose in JS

Posted: Thu Nov 01, 2012 9:03 am
by Maryna Brodina

Maybe there is some problem with your REST service and because of it JS doesn't work on Success event. Please test your REST service.


How to handle service respose in JS

Posted: Thu Nov 01, 2012 10:37 am
by Arsalan Sarwer

Everything which have some problem on computer, runs very well on mobile.

I have no issue on mobile, my app runs perfect.

But on computer it shows nothing and no response.

The REST service and all other data mappings are well defined.

I also test it on firefox, chrome, safari and IE (all browsers latest versions).

I dont know, what's wrong with me, can you please explain ?


How to handle service respose in JS

Posted: Thu Nov 01, 2012 11:03 am
by Maryna Brodina

Could you post your App link? Please go to Test, make the link public and send us http://help.gotiggr.com/documentation...


How to handle service respose in JS

Posted: Fri Nov 02, 2012 6:00 am
by Arsalan Sarwer

Here is the link;

http://project.tiggzi.com/mobile-fram...

The app is working only in mobile.


How to handle service respose in JS

Posted: Fri Nov 02, 2012 9:11 am
by Maryna Brodina

Could you post username/password or send it to support@tiggzi.com so we can test your App? What device with what version do you use to test?


How to handle service respose in JS

Posted: Fri Nov 02, 2012 4:01 pm
by Maryna Brodina

Please try error event, maybe the service is failing and thus success is never called.


How to handle service respose in JS

Posted: Sat Nov 03, 2012 8:58 pm
by Agon Bina

check the cache on your browser too, it might be because of that