CodeIgniter Forums
Sencha Touch Ajax request response - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Sencha Touch Ajax request response (/thread-40538.html)



Sencha Touch Ajax request response - El Forum - 04-12-2011

[eluser]o.burger[/eluser]
hi there!

I am sending an ajax HTTP POST request from a Sencha Touch (ExtJS) application to an CI-controller and I wonder why I couldn't send a request back. do I have to set some kind of header or should I create a spevial view or how does this work?

thnx!


Sencha Touch Ajax request response - El Forum - 04-12-2011

[eluser]o.burger[/eluser]
o.k. - just found out that debugging with firebug on chrome isn't that nice. now using the debugtools of chrome. there is an error thrown which tells me: "XMLHttpRequest cannot load http://www.path-to-appsystem/index.php/loginMobile/ajax_validateLogin. Origin http://www.path-to-appsystem is not allowed by Access-Control-Allow-Origin."


Sencha Touch Ajax request response - El Forum - 04-12-2011

[eluser]o.burger[/eluser]
did some research and now I think this is a crossdomain problem. I think I need to configure my sencha script to use a proxy for the communication.