jquery-mobile

How do I get these jQM 1.4 values out of a form with jQuery?

可紊 提交于 2019-12-24 21:29:03
问题 I've got some settings I want to take out of a jQuery mobile 1.4 form to store in localStorage as the user settings for an app. This is the form. <form style="margin:0;padding:0;width:"> <b>Age</b><br> <input type="range" data-mini="true" data-highlight="true" name="ageview" id="ageview" min="0" max="99" value="30" > <p> <b>Gender</b><br> <input type="checkbox" data-role="flipswitch" name="genderview" id="genderview" checked="" data-on-text="f" data-off-text="m" data-wrapper-class="custom

Select Value not Init in AngularJs and JQueryMobile

╄→尐↘猪︶ㄣ 提交于 2019-12-24 21:17:17
问题 i have a html code like that <select id="selectCatagoryFood" data-role="listview" data-native-menu="true" ng-options="foodCatagory as foodCatagory.Description for foodCatagory in foodCatagories" ng-init="" ng-model="foodCatagory" ng-change="changeFoodCatagory(foodCatagory)"> </select> for getting data from AngularJs and JayData but after getting data select dropdown not selected value by default it show empty. what should i write in ng-init attribute 回答1: You can either preset ng-model=

Consistently update page with appropriate jQuery Mobile styles

荒凉一梦 提交于 2019-12-24 21:06:28
问题 I have a list of items with which I would like to view more details of them when I click on it. The information for these items isn't available and I need to make an API request in order to get the necessary data which I then render in a jquery template. The template is then added to a jquery mobile page. Here is some of the code in question that I am using to try and update my page function updateProductDetails(data){ var productDetailsData = data['product'] var productDetailsPage = $("

“LOADING” message generated at the bottom of the page in JQM [duplicate]

☆樱花仙子☆ 提交于 2019-12-24 19:44:20
问题 This question already has answers here : jQuery Mobile loading message (11 answers) Closed 4 years ago . I am building a basic jqm page and at the end of the page I am getting a big tag with the text "loading". I have seen a lot of answers but no one working for me. I have this html code: <!DOCTYPE html> <html> <head> <title>StackMob JS SDK Examples</title> <link href="css/bootstrap.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="cordova-1.9.0.js"></script> <script

initializing iscroll with phonegap and jQuery mobile

吃可爱长大的小学妹 提交于 2019-12-24 19:23:07
问题 I have built a project using phonegap and jquery mobile, and have iscroll working perfectly on the first page. However on my second page iscroll isn't running. Can someone tell me how you initialize a jquery script on the page in JQM? I am new to both platforms and think it may be a simple mistake! Thanks 回答1: I never used phonegap, but im building a JQM-webapp as well, so i hope this works for you. iScroll seems to cause several problems trying to implement it in JQM. This is why they came

jQuery: Header height returns 0 on subsequent pages

元气小坏坏 提交于 2019-12-24 18:23:04
问题 I don't really understand the problem I am having now. I have this code: $(document).on("pageshow", "[data-role=page]", function(){ var $height = $("[data-role=header]").height(); alert($height); }); This code is working fine on the first page (index) and actually returns an alert with 50. However when I navigate to different pages, the alert returns a height of 0 unless I do a full refresh. I tried window onload function too, it returns me 0. What I want to do is to get the height of the

Working with Geolocation and Google Maps API [HELP]

风流意气都作罢 提交于 2019-12-24 17:59:12
问题 I'm new to the mobile development world and right now I'm building an app that uses jQuery mobile and PhoneGap. Here's my logic: I have a table that contains the users and their addresses. I grab the user address and pass it trough the maps API to catch the location. But I'm doing this for every single record and sometimes the API breaks because the number of simultaneous requests. How can I know what users are closest to me without running it through the maps API? Thanks a lot! 回答1: Rafael,

Working with Geolocation and Google Maps API [HELP]

送分小仙女□ 提交于 2019-12-24 17:59:10
问题 I'm new to the mobile development world and right now I'm building an app that uses jQuery mobile and PhoneGap. Here's my logic: I have a table that contains the users and their addresses. I grab the user address and pass it trough the maps API to catch the location. But I'm doing this for every single record and sometimes the API breaks because the number of simultaneous requests. How can I know what users are closest to me without running it through the maps API? Thanks a lot! 回答1: Rafael,

jQuery Mobile Listview - Phantom/not refreshed in Android 4

情到浓时终转凉″ 提交于 2019-12-24 17:48:52
问题 I see the following botched listview in the Android Emulator (jQuery Mobile + PhoneGap, Android 4): When the page is first displayed, the list is displayed as expected, but then the content is immediately hidden. Touching the display a few times updates to: The list itself is nothing unusual, i.e.: <div data-role="page" class="type-home" id="dine-around-list" data-add-back-btn="true"> <div data-role="header" data-position="fixed" data-theme="e"> <h1>Venue</h1> </div> <div data-role="content"

JSONP not being fetched by browser on Android 2.2.2 using jQuery

淺唱寂寞╮ 提交于 2019-12-24 17:47:59
问题 I have run into a strange problem on Android , using jQuery mobile and Phonegap . I am making JSONP requests to our server to fetch each pages content. The application works fine for a while and then suddenly the requests timeout . Using Weinre I am able to inspect the dom while the application is running on my device and can actually see the script tags being appended to the head by jQuery. What is strange is that when I tail my Apache logs on the server I don't see the request coming