How to load data from another website using jquery mobile application for android ?

I want to build an app using jquery mobile and phonegap. My problem is When I try to load json data using $.ajax() method it works fine in local host but when i try this at live hosting it results nothing. Here is my code.

        type: "GET",
        url: "",
        crossDomain: true, 
        data: {id: 'rahul123', pswd:'xxxxx'},

                alert("User ID and Password is incorrect");

        error: function(){alert("Could not connect");}


Have you added the domain to Phonegaps whitelist?

Need Your Help

How to view pdf file that is saved in DB pdf

This for download but I want only to display. Please help me