Even after making Ajax calls, the page Jqumobile css was lost, even when I added:
$ ("# idlist") list view ("refresh").; In my code:
$ (document) .ready (function () {var display = $ ("# displaydata"); function displaydata () {$ .ajax ({krossdaman: true, type: "GET", data: "liahat == suku", url: "server.php", success: function (data) {display.html (data);}}) ;} Show info ();}); I have called PHP data, here is my PHP code: if (isset ($ _gET ["lihat"]) == "suku ") {$ Tampil = mysql_query (" Choose from desktop "); Echo " $ r [suku] "; Echo "& lt; / ul & gt;"; Here is a suggestion: You
($ _GET ["leahat"]) == "suku") {$ tampil = mysql_query ("Select 'from descriptus''); $ String =" & lt ; Ul id = 'ul' data-role = 'list view' data-inset = 'true' data-filter = 'right' data-filter-placeholder = 'Cari suku besar ...' & gt; ; While ($ r = mysql_fetch_array ($ tampil)) {$ string = "& Lt; li & gt; $ r [suku] "; } $ String = "& Lt; / ul & gt;"; Echo $ string; } After adding the response data, add the code below to your AJAX success function:
$ ("# idlist"). Listview () .trigger ("create"); Enjoy ...
No comments:
Post a Comment