i’m using PhoneGap with JQuery mobile ajax to retrieve some records from a database here’s my code !! but unfortunately its not working
can somebody tell me what’s wrong
<script>
$(document).ready(function() {
$('#cont').bind('pageshow', function () {
$.get('http://tech-tude.com/freedomwobas/getepisodes.php', function (data) {
$(this).find('div[data-role="content"]').append(data);
});
});
});
</script></head><body ><div data-role="content"></div>
You need to (at least) wait for the device to be ready. Try this: