Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to load php file on localhost in phonegap
    primarykey
    data
    text
    <p>Hello i am new in phonegap. i am create a one html file with login validation. my validation code in php file. and i am run on android emulator. that time this php file is not working on emulator so what can i do?</p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;meta charset="utf-8" /&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1" /&gt; &lt;title&gt; &lt;/title&gt; &lt;link rel="stylesheet" href="jquery.mobile-1.1.1.min.css" /&gt; &lt;link rel="stylesheet" href="my.css" /&gt; &lt;style&gt; /* App custom styles */ &lt;/style&gt; &lt;script src="jquery.min.js"&gt; &lt;/script&gt; &lt;script src="jquery.mobile-1.1.1.min.js"&gt; &lt;/script&gt; &lt;script src="my.js"&gt; &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;!-- Home --&gt; &lt;div data-role="page" id="page1"&gt; &lt;div data-role="content" style="padding: 15px"&gt; &lt;div data-role="fieldcontain"&gt; &lt;div id="message" style="display: none;"&gt;&lt;/div&gt; &lt;fieldset data-role="controlgroup"&gt; &lt;label for="textinput1"&gt; Email: &lt;/label&gt; &lt;input name="" id="textinput1" placeholder="" value="" type="text" /&gt; &lt;/fieldset&gt; &lt;/div&gt; &lt;script type="text/javascript"&gt; $(document).ready(function(){ $('#btnValidate').click(function() { $('#message').hide(500); $.ajax({ type : 'POST', url : 'http://localhost/JQuery/php', dataType : 'json', data: { email : $('#textinput1').val() }, success : function(data){ $('#message').removeClass().addClass((data.error === true) ? 'error' : 'success') .text(data.msg).show(500); }, error : function(XMLHttpRequest, textStatus, errorThrown) { $('#message').removeClass().addClass('error') .text('There was an error.').show(500); } }); return false; }); }); &lt;/script&gt; &lt;a data-role="button" data-inline="true" id="btnValidate" data-transition="fade" href="#page1"&gt;Submit&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;script&gt; //App custom javascript &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>This is my html code. where i was incorrect so please tall me.</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.
 

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