Note that there are some explanatory texts on larger screens.

plurals
  1. POPhonegap app not accessing the database on server
    primarykey
    data
    text
    <p>My ajax call is as below</p> <pre><code>&lt;script type="text/javascript"&gt; 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 + " .&lt;br /&gt;" + msg.statusText); } }); } &lt;/script&gt; </code></pre> <p>This i am packaging through online zipper available on phonegap. my config.xml file is</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; &lt;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"&gt; &lt;name&gt;PhoneGap Example&lt;/name&gt; &lt;description&gt; An example for phonegap build docs. &lt;/description&gt; &lt;author href="https://build.phonegap.com" email="support@phonegap.com"&gt; arrest warrant &lt;/author&gt; &lt;access origin="http://www.mydomain.com/" /&gt; </code></pre> <p></p> <p>Other details are</p> <p>Version 1.0.0</p> <p>PhoneGap 2.1.0</p> <p>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.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload