Page 1 of 1

Mapping jsonp results

Posted: Thu Jun 27, 2013 12:05 am
by Rommel Paras

I created 2 versions of a project, both of which access an external domain.

One uses json requests and works fine on the desktop (Chrome, FF). I created another one which uses JSONP since it doesn't work on the iPhone/iPad even though I've added the code header('Access-Control-Allow-Origin: *');

Since jsonp is not plain json, how do I handle the output when it comes to mapping the results of a JSONP request?

Json: http://appery.io/app/view/7946b4f7-15...

Jsonp: http://appery.io/app/view/b7685864-bd...


Mapping jsonp results

Posted: Thu Jun 27, 2013 12:39 am
by maxkatz

The mapping portion is handled the same way whether it's json or jsonp.