Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8783191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:45:59+00:00 2026-06-13T20:45:59+00:00

My ajax call is as below <script type=text/javascript> function calling() { var user =

  • 0

My ajax call is as below

<script type="text/javascript">
    function calling() {
        var user = $('#username').val();
        $.ajax({
            type: 'POST',
            //url: "myfirstwebservice.asmx/GetCustomer",
             url: "http://www.mydomain.com/myfirstwebservice.asmx?op=GetCustomer",
            data: "{'username':'" + user + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "jsonp",
            success: function (msg, status) {
                alert("successful");
                console.log(msg.d.password);
                $('#myplace').html("your passowrd is " + msg.d.password);
            },
            error: function (msg, status) {
                alert("failure");
                console.log("failure");
                console.log(msg);
                $('#myplace').html("The status is " + status + " with msg= " + msg + " .<br />" + msg.statusText);
            }
        });
    }
</script>

This i am packaging through online zipper available on phonegap.
my config.xml file is

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id        = "com.phonegap.example"
versionCode="10"
version   = "1.0.0">
<name>PhoneGap Example</name>
<description>
    An example for phonegap build docs.
</description>

<author href="https://build.phonegap.com" email="support@phonegap.com">
    arrest warrant
</author>
<access origin="http://www.mydomain.com/" />

Other details are

Version
1.0.0

PhoneGap
2.1.0

Is there anything which i am doing wrong as i am not getting the output.
Datatype should be json or jsonp? For my local machine i am using json(which is cross domain for database access and is working fine). What i am missing for my mobile device.
Webservice are in .NET 2.0 framework.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:46:00+00:00Added an answer on June 13, 2026 at 8:46 pm

    The url which i was using to get the jsonp is not actually returning the json response.

    Click here
    This url returns the json if somebody wants to try.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I did ajax call and got response in callback function like below: var v=;
AJAX Call $.ajax({ url: '/api/Inventory', cache: false, type: 'POST', data: json, contentType: 'application/json, charset=utf-8',
Here's my ajax call: $.ajax({ url: 'url-to-json', type: 'POST', dataType: 'json', cache: 'false', data:
I am trying to call a PHP function using AJAX. Below is the script
I am using the below jquery code to call a ajax function in my
I have a function that makes an ajax call to get the initial data
I have a jQuery script to change background image with respect to ajax call
How can i implement the below code with jQuery/AJAX timer,(I have created 2 URL
In the code below I use the jQuery ajax() function to do a longpolling
I am trying to apply ajax call for the response received from json. Below

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.