CodeIgniter Forums

Full Version: Sencha Touch Ajax request response
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!

El Forum

[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."

El Forum

[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.