Greetings,
I’m using jQuery AJAX, and PHP. The codes are perfectly running on the browser but not on the phone ( both Android and iOS ). Thanks in advance.
HTML/AJAX:
<template>
<div class="page no-navbar no-swipeback home-admin-page">
<div class="page-content home-admin-page-content">
<div id="output"></div>
<div id="message"></div>
<button id="loadNew">Load New User</button>
</div>
</div>
</template>
<script>
return {
on: {
pageInit: function() {
$( '#loadNew' ).click( function() {
app.request.get('pages/get.php', function (data) {
$('#output').html(data);
console.log('Load was performed');
});
});
}
}
}</script>
PHP:
$rows = "hi";
print json_encode($rows);