PDA

View Full Version : Usage of Cross-Origin Resource Sharing in sencha



Sameer Khan
7 Dec 2011, 5:34 AM
Hi, I am new to sencha touch...In My application there is a need to use CORS ...But i don't have Idea to use..
for Time being right now i created one dynamic form in My Panel and calling submit() on the dynamic form...
But here the problem is If N/W is low or not working, in the middle of form submit total application getting failure with 404 error.. To over come this one i need to work with CORS...
So somebody please help me..

Thanks in Advance.

AndreaCammarata
9 Dec 2011, 8:48 AM
Sameer,
if you are developing your app, on your pc but you need to ask data from a different domain, you should run you app from the file:/// protocol instead of using the http:// one.
This will allow you to go round the CORS issue while you are developing.

Hope this helps.

Sameer Khan
9 Dec 2011, 6:28 PM
First Thanks for your reply...
I need some sample use code..In my application I am using .NET server...
Previoulsy I was tried to post my data with jsonp, But it cann't transfer huge amout of data.
So in my application i created one dynamic form and i added localstore data to dynamic form and calling submit(). But if n/w is interrupted then total application is terminating on GT,Ipad...
So i need one exact solution to fix this problem...

Awaiting for your reply...
Once againg thanks to you ..

Sameer Khan
11 Jan 2012, 11:37 PM
Plz send me one sample code on it...It will be helpful for me....