Note that there are some explanatory texts on larger screens.

plurals
  1. POJSONP not working
    primarykey
    data
    text
    <p>I am making a jQuery Mobile and PhoneGap app. I need to submit a form. I made something like this: </p> <pre><code>$.ajax( { url: 'http://ip.ip.ip.ip:8070/services/rest/operator/login',//?email=' + email + '&amp;password=' + haslo, dataType: 'jsonp', type: 'GET', callback: 'jsonpCallback', jsonpCallback: 'jsonpCallback', jsonp: '_jsonp', data: ({'email' : email, 'password' : pass}), contentType: 'application/x-www-form-urlencoded', success: function (data) { window.location = ('file:///android_asset/www/custom/main.html'); }, error: function (data) { alert('Login i/lub hasło nieprawidłowe '+data); } }); </code></pre> <p>It works on Chrome but doesn't on my Android device. I read the documentation of both PhoneGap and jQuery Mobile, and I tried whitelisting, $.mobile.allowCrossDomainPages and $.support.cors. As I know that PhoneGap allows cross-domain I also tried to change datatype to json.</p> <p>Unfortunately I have no access to server-side code. I just have this short "wadl". Web service returns 200 success or 401 access denied.</p> <pre><code>&lt;resource path="/operator"&gt; &lt;resource path="/login"&gt; &lt;method name="GET"&gt; &lt;request&gt; &lt;representation mediaType="application/x-www-form-urlencoded"&gt; &lt;param name="email" style="query" type="xs:string"/&gt; &lt;param name="password" style="query" type="xs:string"/&gt; &lt;/representation&gt; &lt;/request&gt; &lt;response&gt; &lt;representation mediaType="application/octet-stream"/&gt; &lt;/response&gt; </code></pre> <p>What am I missing? </p> <p>Note: Only once I received [object Object] error message. But I have no idea how:)</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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