jquery-mobile

How to get id from one page to other page?

你说的曾经没有我的故事 提交于 2019-12-11 14:39:29
问题 I am using jquery mobiles 1.4.2 I have to refer id from one page to other page. html <div data-role="page"> <div data-role="header"> hello</div> <div data-role="content"> <a href="#freeadd" id="ofrecer" data-role="button" data-mini="true">Ofrezco en Venta</a> <a href="#freeadd" id="ofrecer" class="aliq" data-role="button" data-mini="true">Ofrezco en Alquiler</a> <a id="busco" href="#freeadd" data-role="button" data-mini="true">Buscar</a> </div> </div> <div data-role="page" id="freeadd"> <div

jQuery Mobile and Android device back button with build.phonegap.com

旧时模样 提交于 2019-12-11 14:38:33
问题 I'm developing an android mobile application using jquery mobile and Phonegap. I'm new to developing android apps using Phonegap. I need to control the function of a back button in android. What I would like is if i'm on a specific page and if I touch the back button there will be a prompt asking if 'do you want to exit the app?'. I could use help on information to go about this. HTML: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="user-scalable=no,

Jquery Mobile, Panel event only triggered if placed in external .js

风格不统一 提交于 2019-12-11 14:36:26
问题 Trying to implement panel event without success using this code in $(document).on("panelbeforeopen", "#leftpane", function(event, ui ){ // alert("panelbeforeopen"); var disableForm = "<?php echo ($_SESSION['user'] == '' ? 'true' : 'false') ?>"; if(disableForm){ alert("form disabled"); }else{ alert("form enabled"); } }); This will result in just working if i refresh the page totally. If i put it in my included .js file it works without refreshing the page but PHP function to get user in

What jquery based table plugin can hide sub rows?

a 夏天 提交于 2019-12-11 14:28:36
问题 I'm in the need to convert excel macros into jquery code, the function is that you need to click on the plus sign to unfold and show the sub rows to modify column2 if you want to type values in column2, the other columns can't be modified. You can't straightly modify values of column2 until you unfold the parent row, because there are many sub rows belonging to parent row,say Car. The values of Name, Model, Code are existing, they are master data, no need to type or modify. please see the

Infinite Scrolling without ajax using jquery? [closed]

社会主义新天地 提交于 2019-12-11 14:28:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to create infinite scroll in jquery mobile web application.I want to scroll the page without using ajax.Is there any possibility to do that? 回答1: If your data isn't really infinite, you may store everything in the page and show the ones that needs to be shown. For example (not tested, but to give you an

jQueryMobile and toggling DIV visibility

雨燕双飞 提交于 2019-12-11 14:21:45
问题 I've got strange behaviour and I can't realize how to fix it. I've got mobile version of web service and on every page I'm placing search form in DIV element, whole container should be toggled with common jQuery's .toggle() The code is (script is placed directly in page's code, like in the sample): <div id="search-area" style="display: none"> search form here... </div> <a href="#" id="search-area-switch" data-role="button">Search</a> <script type="text/javascript"> $('#search-area-switch')

how to change the color of selected text in css for jquery mobile div

橙三吉。 提交于 2019-12-11 14:15:32
问题 I want to change the color of selected text to #3C3 for the div one not div two. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="lib/jquery.mobile-1.3.1.min.css" /> <script type="text/javascript" src="lib/jquery-1.9.1.min.js"></script> <script type="text/javascript" src="lib/jquery.mobile-1.3.1.min.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <script type="text/javascript"

jQuery nav bars appearing outside of the content width

你离开我真会死。 提交于 2019-12-11 14:11:14
问题 I have a really annoying issue whereby the persistent jQuery nav bars are appearing outside of the content width, much wider than the rest of the content on the page, this is what I see when I preview my HTML : Using <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0" /> in the <head> it should set the content width to be the device width, which it has for the header and text element, but not for the nav bars. This is my

Changing JQuery Mobile data-theme dynamically

天大地大妈咪最大 提交于 2019-12-11 13:59:17
问题 I want to map a tap event to a function that changes the data-theme of a specific element in my document. It looks something like this: $(document).delegate("#item1", "tap", function() { $("#item1").attr("data-theme", "e"); }); So far, it kind of works correctly. In the source code I can see it changing the attribute. However, it doesn't get re-rendered on the document and everything appears to the stay the same. Do I have to reload the document or is there a way to make it dynamically update

jQuery mobile css scroll and click

强颜欢笑 提交于 2019-12-11 13:58:28
问题 I'm developing a mobile website for smartphones and using jquery mobile. first test: http://pastehtml.com/view/bq51kpbmm.html I have added the content to the page, so it should be scrollable, but when I'm scrolling the header and footer will be disable for the scroll time. :( second test: http://pastehtml.com/view/bq51nmk7i.html The jquery mobile documentation (http://jquerymobile.com/test/docs/toolbars/bars-fixed.html) gives me the information that data-position="fixed" should disable hiding