calling cross domain ajax

6 posts, 0 answers
  1. Mohamat
    Mohamat avatar
    3 posts
    Member since:
    Aug 2013

    Posted 14 Aug 2013 Link to this post

    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
  2. Keen
    Keen avatar
    101 posts
    Member since:
    Mar 2013

    Posted 14 Aug 2013 Link to this post

    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
  3. Mohamat
    Mohamat avatar
    3 posts
    Member since:
    Aug 2013

    Posted 15 Aug 2013 Link to this post

    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
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 15 Aug 2013 Link to this post

    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.
  5. Mohamat
    Mohamat avatar
    3 posts
    Member since:
    Aug 2013

    Posted 15 Aug 2013 Link to this post

    Thank you very much.  

    i have tested it on the desktop icenium (windows client) and it worked like magic
  6. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 17 Apr 2014 Link to this post

    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!

     
Back to Top