-
28 Oct 2012 9:01 PM #11
well that did not work i had many mods of the environment and just getting back to using sencha.
what i wrote above would fire off the request but the response would not get picked up. i am using "sitebase api framework on codecanyon.net" ... worth the 30 bucks.
it does not have a jsonp wrapper, just a json one so it tweaked it to wrap the callback function.
and modified .htaccess like this:
RewriteRule ^(.*)\.(json|xml|csv|txt|printr)$ endpoint.php?api_request=$1&api_response_type=$2 [QSA]
and changed Api/Request.php to use strpos and not strrpos where the latter was finding the last occurance of a period not the first.
and then calls like the following will work without any changes to sencha.
http://www.mathpdq.com/api_drew_mod/v1/users/all.json?callback=Ext.data.jsonP.callback7
-
26 Jan 2013 1:34 AM #12
I found it easier to solve this with an override
Code:Ext.apply(Ext.data.JsonP, { request:function (options) { console.log('Override [' + Ext.getDisplayName(arguments.callee) + ']'); YOUR MODIFIED CODE HERE } });Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
You found a bug! We've classified it as
TOUCH-2541
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote