How do I include JSN data in more button functions in loading
var index = 1; $ (Document) .on ("pagecreate", "# page1", function () {$ ("# btnAdd"). ("Click", function () {var allItems = ''; for (var i = 0 ; I & lt; 100; i ++) {All items + = '
My Jason is url:
It was trying for the day but it is not showing any results, please help me master, thanks .. < / P>
var index = 0; $ (Document) .on ("pagecreate", "# page1", function () {$ ("# btnAdd"). ("Click", function () {var url = "http: //www.beritanisma Com / category / superlawak /? Json = get_category_posts "$ .getJSON (URL, function (data) {var allItems = ';; (var i = 0; i & lt; data.posts.length; i ++) {Console.log (data + post [i] .url); All items + = ' gt; & lt; a href = "javascript: showDetails (' + (index + i) + ')" & (+ I) + '& lt; / a & gt; & lt; / li & gt;'}} Index + = 100; $ ("# ListTemp") empty () Attachments (All Items) .listview ("Refresh"); var element = $ ("#listTimpe Li"). Separate (); $ ("#listedspirit "); Append (element);});});});
No comments:
Post a Comment