Very Slow To navigate to a jquery page

5 posts, 0 answers
  1. john
    john avatar
    4 posts
    Member since:
    Aug 2011

    Posted 08 May 2014 Link to this post

    I have my first app build and tested on Windows phone, the bad thing is it is very slow. the navigation took 10+ minutes!
    Something wrong with my app?
    The same app works fine on the simulator and Android.

  2. john
    john avatar
    4 posts
    Member since:
    Aug 2011

    Posted 08 May 2014 in reply to john Link to this post

    I have my page here:
    ​<!DOCTYPE html>
    <html>
    <head>
    <meta charset="UTF-8" />
    <title>Signup</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="jquery-mobile/styles/jquery.mobile-1.3.1.min.css" rel="stylesheet" />
    <link href="styles/main.css" rel="stylesheet" />
    <script src="cordova.js" type="text/javascript"></script>
    <script src="jquery-mobile/js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="jquery-mobile/js/jquery.mobile-1.3.1.min.js" type="text/javascript"></script>
    </head>
    <body>
    <div>
    <h1 id="description">Use your phone/email to sign up</h1>
    <input id="account" />
    <input type="button" id="btnGetValidation" value="Next" />
    </div>

    <script type="text/javascript">
    //var getPara = window.location.search.replace("?", "");
    //document.getElementById("description").innerHTML = "Use your " + getPara + " to sign up, will send you a validation code once you click next.";

    $(document).ready(function () {
    $("#btnGetValidation").click(function () {
    jQuery.support.cors = true;
    var keyword = $("#account").val();
    //var url = "http://localhost:32765/api/UserValidation/?account=" + keyword;

    var url = "something /?account=" + keyword;
    if (!!keyword) {
    $.ajax({
    type: "GET",
    url: url,
    data: "{}",
    contentType: "application/json; charset=utf-8",
    dataType: "jsonp",
    success: function (data, status) {
    //alert("Data Loaded: " + data);
    // undone: add error handling
    // if there is error, the return will be
    // error:xxxx
    $("#comment").text(data);
    window.location.href = "Validate.html?c=" + data;
    },
    error: function (msg, url, line) {
    $("#comment").text("error");
    }
    });
    }
    })
    })
    </script>
    </body>
    </html>
  3. john
    john avatar
    4 posts
    Member since:
    Aug 2011

    Posted 08 May 2014 in reply to john Link to this post

    Attached my page, (removed the sensitive url)
  4. john
    john avatar
    4 posts
    Member since:
    Aug 2011

    Posted 09 May 2014 in reply to john Link to this post

    I think it is this issue: PhoneGap/WP8 - Fail to load url with parameters

    Is there a solution yet?
  5. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 13 May 2014 Link to this post

    Hello john,

    I have replied to your other thread and will await your answer there.

    Further, the issue you have related is a Window Phone one and we do not know when Microsoft will release a fix for it. However, there is a big possibility that your issue is not related to it.

    I am looking forward to your reply.

    Regards,
    Kaloyan
    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