jquery-mobile-listview

how to display json data in my listview in intel xdk

荒凉一梦 提交于 2020-01-16 07:41:10
问题 i am developing hybrid application by using intel xdk and jquerymobile framework for UI. i am trying to get json data from url and display it into listview. i already got json data from url but i don't know how to display those data in listview This is my json data { "nl_wu":[ { "id":"42", "year":"2015", "month":"jan", "title":"newsletter", "file":"http://school.com/sample.pdf" }, { "id":"39", "year":"2015", "month":"jan", "title":"imagetest", "file":"http://school.com/sampleimage.jpg" } ] }

Get checked data from dynamic listview and uplaod to server

风流意气都作罢 提交于 2019-12-24 06:04:05
问题 In image there 4 list as of now sometimes it will be more and below of 4 //I am just uploading data from listview to server. //After selection of first page listview its going to another page (List view with checkbox), Now there are many lists with check box ,so I just want to select few of them and upload that selected list to server using rest api. //below code for first page <div class="example-wrapper" data-iscroll> <ul data-role="listview" data-insert="true" data-filter="true" data

.listview() is not a function error when creating a dynamic listview in jquery mobile

折月煮酒 提交于 2019-12-17 14:58:36
问题 I am trying to create a dynamic listview in jquery mobile, after querying the facebook api, to retrieve a user's news feed. Here's part of my mark up: markup += '<li><a href=""><img src="https://graph.facebook.com/' + id + '/picture">'+'<h4>' + name + '</h4><p>' + short_post +'....</p></a></li>'; I then have, $(newsfeedposts).append(markup); $(newsfeedposts).trigger("create"); however after that when i call the $(newsfeedposts).listview("refresh"); I get a type error: TypeError: $(...)

.listview() is not a function error when creating a dynamic listview in jquery mobile

寵の児 提交于 2019-12-17 14:57:59
问题 I am trying to create a dynamic listview in jquery mobile, after querying the facebook api, to retrieve a user's news feed. Here's part of my mark up: markup += '<li><a href=""><img src="https://graph.facebook.com/' + id + '/picture">'+'<h4>' + name + '</h4><p>' + short_post +'....</p></a></li>'; I then have, $(newsfeedposts).append(markup); $(newsfeedposts).trigger("create"); however after that when i call the $(newsfeedposts).listview("refresh"); I get a type error: TypeError: $(...)

JQuery Mobile filterable listview with multiple filters

谁都会走 提交于 2019-12-11 13:02:03
问题 I have a JQM 1.4.2 filterable listview which contain entries in different languages. I would like to search only within items code, not the whole description, whereby i set the data-filtertext for list items to the item code, e.g. "Apple" or "Banana". This works ok but now i need an additional language filter, e.g. "EN", "DE", and so on: ... <li data-filtertext="Apple language_en"> <h2>Title</h2> <p>Red fruit</p> <p class="ui-li-aside"><strong>EN</strong></p> </li> ... ... <li data-filtertext

jQuery mobile cannot refresh the collapsibleset

谁都会走 提交于 2019-12-10 16:55:35
问题 I am creating an application using jQuery mobile and loading its menu and pages form wordpress throw jsonp. I am loding its menu in the form of collapsibleset and listview but i keep on getting errors. when I try to refresh the collapsibleset by this code $(".childnev").html(list); $.mobile.loading( 'hide'); $('.popupmenu').slideToggle('slow'); $(".childnev").collapsibleset('refresh'); $(".childsublist").listview().listview('refresh'); It gives me this error Error: cannot call methods on

.listview() is not a function error when creating a dynamic listview in jquery mobile

寵の児 提交于 2019-11-27 16:16:12
I am trying to create a dynamic listview in jquery mobile, after querying the facebook api, to retrieve a user's news feed. Here's part of my mark up: markup += '<li><a href=""><img src="https://graph.facebook.com/' + id + '/picture">'+'<h4>' + name + '</h4><p>' + short_post +'....</p></a></li>'; I then have, $(newsfeedposts).append(markup); $(newsfeedposts).trigger("create"); however after that when i call the $(newsfeedposts).listview("refresh"); I get a type error: TypeError: $(...).listview is not a function my html div tag is this <div data-role="content"> <div class ="post"> <ul data