I am working on an iOS PhoneGap application. I currently get an RSS feed from Facebook for JFD, so it appears on a list view: everything works great I now allow the user to reload the list view.
Whatever I have tried here is:
& lt; Div data-role = "page" id = "index" & gt; & Lt; Div data-role = "header" data-id = "foo2" data-position = "fixed" & gt; & Lt; H1 & gt; Actu BDA Audencia & lt; / H1> & Lt; A href = "#" onclick = "$ ('# result'). Add (html); $ ('# result'). List view (" Refresh ");" Data-icon = "info" data-reliance- "popup" data-position-to- = "window" data-roll = "button" data-transition = "pop" data-iconos = "left" class = "ui- Btn-OK "& gt; Update & lt; / A & gt; & Lt; / Div & gt; & Lt; Div data-role = "content" & gt; & Lt; Div class = "pull-to-refresh" & gt; Test & lt; / Div & gt; & Lt; Ul id = "results" data-role = "list view" data-split-theme = "d" & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; Script & gt; JQuery (function () {jQuery.getFeed ({url: 'http://www.facebook.com/feeds/page.php?id=360453900718092&format=atom10', Success: Work (feed) {$ .mobile loading ("Show"); var html = ''; var numjour = ''; var nummois = ''; var heure = 'var newitem =' '; (var i = 0; i '<' & Lt; li & gt; '+ numjour +' + months [nummois] + '& lt; span class =" ui-li-count "& gt; '+ Heure +' span>
"+ newitem + '& lt; / div & Gt; & lt; / li & gt; & lt; / div & Gt; '} $$ (' # result ') .append (html); $ (' # result '). Listview ("Refresh"); $ .mobile.loading ("hide");}}); }); & Lt; / Script & gt; I added an "Update" button to trigger the load again. Unfortunately, clicking on the button does not trigger anything. Can you help me on this?
Thank you very much, David.
You can use: $ ('# mylist'). Listview ('Refresh');
See the section "Update list":
No comments:
Post a Comment