jquery-mobile

How to make jQuery Mobile list dividers fixed at top

旧时模样 提交于 2019-12-24 11:04:14
问题 Is there a way to make the "data-role="list-divider" fixed at the top of the page until the next letter or list divider comes up and takes its place, like in the iPhone contact app? Here is a link to the jquery mobie list dividers demo. The list dividers dont stay at the top but rather scroll up and down with the page. http://jquerymobile.com/demos/1.0a3/#docs/lists/lists-divider.html Thanks for your help in advance. -bob 回答1: Check this out.Not sure what exactly to do. http://jquerymobile

jquery mobile - requesting multi-page page via changePage

拜拜、爱过 提交于 2019-12-24 10:42:49
问题 From the index page of the site, I am loading another page which has 3 divs with the data-role of page. However, jquery mobile only appends one of the pages to the dom. I presume the changePage function is grabbing the first div with a data-role of page and inserting it. I wonder if there is a way to get it to insert all the divs with a data-role of page or dialog. Any help more than appreciated. thanks 回答1: What you are trying to do is currently not possible with JQM, as only the first page

Jquery mobile how to force target page refresh after changePage

三世轮回 提交于 2019-12-24 10:28:28
问题 Is there any way to refresh the target page after changePage. I really search but nothing works for me. 回答1: Try one of the following solutions: 1 - Use $(location).attr('href',"your_html.html"); Example: Since you're using single page template, let's suppose that you have two jQuery Mobile pages ( #page_1 and #page_2 ) in 2 separate HTML files ( page_1.html and page_2.html ). If you want to navigate from #page_1 (which is in page_1.html ) to #page_2 (which is in page_2.html ), you'd use: $

jQuery mobile appending html code

你说的曾经没有我的故事 提交于 2019-12-24 10:18:48
问题 I would like to append some code to a page using jQuery/jQuery mobile, I would only like to append once not on each visit to the page. ** final edit ** <!DOCTYPE html> <html> <head> <title>Page Title</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b2/jquery.mobile-1.0b2.min.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script> <script type="text/javascript"

JQueryMobile dialog shows twice because of a postback

穿精又带淫゛_ 提交于 2019-12-24 10:07:17
问题 I have an asp.net page with a timer embedded in an UpdatePanel (UpdateMode="Conditional", ChildrenAsTriggers="false"). The timer is responsible for updating some components of that page every few seconds. There are also some HyperLink controls on the page and they open a JQueryMobile dialog when clicked (data-rel="dialog"). The problem is that the timer i mentioned causes postback every few seconds. So when a dialog is opened and then closed, the first such postback after then causes the

jQuery Mobile dropdown menu bug in iOS

吃可爱长大的小学妹 提交于 2019-12-24 09:58:11
问题 I have got bug reports on a jQuery Mobile project beta 2 project with dropdown menu (select tags in html) that says when the scroll the wheel on the native "select value" in a dropdown menu its zooming the page and when selected a value its not being set back, the user need to tap to get normal zoom again. I only has Android to test on, is there someone else that got the same problem and have a solution for it or is it a bug in iOS or jQuery Mobile? 回答1: I ran into this problem myself. Did

How to set the default date on date box in jQuery mobile with DateBox plugin?

我的未来我决定 提交于 2019-12-24 09:38:04
问题 I am implementing the date box in jQuery mobile. I am using the date box in pop up, which is working. I need to set the default date (current date) in the text field when a user opens the pop up screen, using (+) button. http://jsfiddle.net/ravi1989/uhdYv/ <div data-role="popup" id="CaseInformationScreen" data-close-btn="none" data-overlay-theme="a" data-dismissible="false"> <div data-role="header" data-theme="b" > <a href="#" data-role="button" data-corners="false" id="Cancel">Cancel</a> <h1

How to decide which page to load first on jquery mobile?

佐手、 提交于 2019-12-24 08:59:52
问题 i'm building a mobile app using jquery mobile and phonegap (Apache Cordova), the problem is that first i need to make a DB query before i decide which page i want to load first, if it's the "login" page or the "main page". Based on the phonegap documentation i need to bind the "deviceready" event to know when the device is ready and then make the DB queries. document.addEventListener("deviceready", onDeviceReady, false); The function called "onDeviceReady" creates the DB if it's not created

Should MVC4 PartialView ajax loading fire a “pageinit” event?

≯℡__Kan透↙ 提交于 2019-12-24 08:57:18
问题 In my asp.net mvc4 + jquerymobile app, I have a 'page' which looks something like this: +---------------------------------------+ |A | | +----------------+----------------+ | | |B |C | | | | | +------------+ | | | | | |D | | | | | | +------------+ | | | +----------------+----------------+ | +---------------------------------------+ A is pretty much just a container page, it does nothing other than set up B & C 'subpages' (partial views) B is a UserList panel(div), it has events bound which

Is there a way to use something other than a header tag to indicate a header in jQuery Mobile collapsible block?

本秂侑毒 提交于 2019-12-24 08:56:37
问题 According to the documentation, after marking a div with data-role="collapsible" there needs to be a header tag (h1 - h6) so that jQuery Mobile will turn it into the header of the collapsible block. My question is, is there other way to indicate the header? Something like: data-role="collapsible-header"? 回答1: Try using a legend rather than h# 来源: https://stackoverflow.com/questions/7521256/is-there-a-way-to-use-something-other-than-a-header-tag-to-indicate-a-header-in