Ios on beforeSend setRequestHeader, btoa issue

2 posts, 0 answers
  1. Bimar
    Bimar avatar
    20 posts
    Member since:
    Jan 2006

    Posted 19 Feb 2014 Link to this post

    I have ajax code in my script. Problem is when request start, after beforeSend part ajax code ends (out of the ajax scope). It is not going into error or success part on Ios. But on android it is working properly. Do you have any idea why? I suspect setRequestHeader or btoa methods

                    url: connectionString ,
                    type: "GET",
                    contentType: "application/json; charset=utf-8",
                    dataType: "json",
                    beforeSend: function (xhr) {
                        alert("before send");
                            "Basic " + btoa(username+ ":" + password));
                    error: function (xhr, ajaxOptions, thrownError) {

                    success: function (a) {

  2. Steve
    Steve avatar
    10941 posts

    Posted 20 Feb 2014 Link to this post

    Hello Bimar,

    We're not aware of such a problem. If the problem occurs only on iOS device, you can debug directly on the device to see what is going wrong. Check out the following links in our documentation for more information:

    You can also setup Fiddler to intercept your device's traffic which would give you a clue what's going on with any server/device communication.

    Icenium is now Telerik AppBuilder, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Back to Top