This is a migrated thread and some comments may be shown as answers.

calling cross domain ajax

5 Answers 195 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mohamat
Top achievements
Rank 1
Mohamat asked on 14 Aug 2013, 01:27 PM
Hi, 
i have been trying to do a ajax call to a service that i have create using .net, but i was not able to get back any data
i am trying to retrieve a json data from my service.  

i have tried using phonegap it worked perfectly as phonegap has a config file on which you can set the whitelest 
can anyone help me to do the same using icenium

5 Answers, 1 is accepted

Sort by
0
Keen
Top achievements
Rank 1
answered on 15 Aug 2013, 02:44 AM
Hi Mohamat,

I encountered that kind of problem in the apps I developed. I think you must consider to cross domain in your webservice.

Regards,
Keen
0
Mohamat
Top achievements
Rank 1
answered on 15 Aug 2013, 05:10 AM
Hi  Thank you Keen

But any tips on how can i do that, i mean can you post any code sample from your web service projects that will allow you to call ajax cross domain

Thankx
0
Steve
Telerik team
answered on 15 Aug 2013, 09:33 AM
Hello Mohamat,

If you're using Icenium Mist then you're running your app in the browser and therefore you're subject to CORS (Cross-origin resource sharing) limitation. This matter has been discussed in this forum thread, so review it to get better understanding on your options how to proceed.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Mohamat
Top achievements
Rank 1
answered on 15 Aug 2013, 02:22 PM
Thank you very much.  

i have tested it on the desktop icenium (windows client) and it worked like magic
0
Iva Koevska
Telerik team
answered on 17 Apr 2014, 03:02 PM
Hello Mohamat,

If you're using the in-browser client in Chrome, you can get the Telerik AppBuilder Helper for Chrome which enables Ajax CORS requests for the device simulator to spare you the CORS errors.

You can get it from here. The team plans to bring more improvements in the Helper in the future, so keep an eye on it.

Regards,
Iva Koevska
Telerik
 

Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

 
Tags
General Discussion
Asked by
Mohamat
Top achievements
Rank 1
Answers by
Keen
Top achievements
Rank 1
Mohamat
Top achievements
Rank 1
Steve
Telerik team
Iva Koevska
Telerik team
Share this question
or