jquery-mobile

JQuery Mobile Custom Filter - Checkboxes

时光毁灭记忆、已成空白 提交于 2019-12-12 03:19:06
问题 I'm trying to filter a list of check box items, I want any checked items to be included in the list regardless if they satisfy the search criteria. My idea was to use a custom search and to add a '~' to the front of the data-filtertext attribute of any checked items, then in my search function return true if the '~' is there or if the regular criteria is met. First the code below has huge problems in addition to it not working, note the ! on the test for checked - the status hasn't updated at

how to get the element on which taphold is fired(jquery mobile)

三世轮回 提交于 2019-12-12 03:18:18
问题 Can you please help me to locate on which element "taphold" is fired by using js, jquery or jq mobile. my html structure is like mentioned below <script> $(document).on("pagecreate", function () { $("#myFilesListView").bind('contextmenu', function (event) { event.preventDefault(); event.stopPropagation(); return false; }); }); $(document).ready(function () { $("#myFilesListView").bind("taphold", function (event) { event.preventDefault(false); event.stopPropagation(); var ID = $(this).child()

Jquery Mobile select refresh after ajax call not working

走远了吗. 提交于 2019-12-12 03:15:44
问题 I have a select box which is inside a collapsible. I am trying to make an ajax call and add options dynamically from the result. Unfortunately the refresh on the select doesn't work and options are still now shown. any pointers? I am using jquery mobile 1.1.rc2 $.getJSON(myurl, function(data) { $.each(data, function(key,value) { myDropDown.append($("<option />").val(key).text(value)); }); myDropDown.selectmenu("refresh"); }); 回答1: Have you tried forcing the rebuild of your selectmenu? /

UIWebOverflowScrollView Exception in Phonegap Application

大城市里の小女人 提交于 2019-12-12 03:11:32
问题 I am developing Phonegap app for iPad using jQuery mobile. My App works fine. But sometime it gives this exception. "-[UIWebOverflowScrollView _viewDelegate]: message sent to deallocated instance 0x8f2cb70" Anyone know what is the reason for that? Thank you 回答1: Seems u r releasing something prematurely, u may use Allocations Tool with Zombie enabled to find out what is that object.. Are u on iOS >= 5.0? 来源: https://stackoverflow.com/questions/10378946/uiweboverflowscrollview-exception-in

How to programmatically set DurationBox value in jQuery Mobile DateBox2?

天涯浪子 提交于 2019-12-12 03:06:10
问题 I am using the DateBox2 PlugIn for my jQuery Mobile webpage. I get a duration in seconds from a JSON Webservice which can be as long as multiple days (e.g. 86400s). I want to post this in to my text input using the standard DateBox2 duration display like "1 Day, 00:00:00", but all I get is the plain seconds value. I tried some combinations of .val(), .datebox("setTheDate", 86400), .datebox(callFormat, ...) but none of them seem to work. Here is my input field: <input class='period' type='text

jqplot conflict with jquerymobile

天大地大妈咪最大 提交于 2019-12-12 03:06:01
问题 in a same html page i need to use jquerymobile (www.jquerymobile.com) and plot a simple chart with the jqplot js library (www.jqplot.com). I think i have a conflict issue between jqplot and jquerymobile, because the chart isn't displayed. But if i comment the jquerymobile script the chart became visible. This is the part of my html code: [...head...] <link rel="stylesheet" type="text/css" href="jquery.jqplot.1.0.0b2_r792/dist/jquery.jqplot.css" /> <script type="text/javascript" src="jquery-1

Popup not hidden on iPhone in jQuery Mobile 1.3.1

天涯浪子 提交于 2019-12-12 03:03:09
问题 According to the documentation for jQuery Mobile 1.2 it should be possible to make arbitrary divs popup without them being pages: <div data-role="popup" id="popupHelp">I should be hidden</div> Until <a href="#popupHelp" data-rel="popup" data-position-to="window">this</a> is clicked! This seems to work fine in Chrome on the PC: The div is hidden until this is clicked and the popup is displayed. On the iPhone however the div is displayed (with X close button) below the page footer before the

Jquery Mobile Hyperlink-button Animation Not Firing

不打扰是莪最后的温柔 提交于 2019-12-12 03:02:39
问题 I have two JQM buttons: <a id="clearA" href="#" data-role="button">Clear a</a> <a id="clearB" href="#mainPage" data-role="button">Clear b</a> And I am wiring up the click event for (hyperlink/button "clearA") like this: $("#clearA").click(function (e) { e.stopImmediatePropagation(); e.preventDefault(); console.log("Me? I got clicked"); }); When I click "clearA" the event is fired but the button doesn't show its pressed animation/state. If I click the non wired up button "clearB", the button

Snake Game with Controller Buttons for Mobile Use **UPDATED**

佐手、 提交于 2019-12-12 02:58:51
问题 ** NOTE: I've Edited the javascript below and linked to a new JSFiddle but still not getting the buttons to control the snake's movement like the arrow keys on the keyboard ** I’m trying to create a real easy snake game for project but need it to have buttons so the game will work on mobile. This is almost there except i need to have the buttons control the movement of the snake on screen: HTML: <div class="game-container"> <div class="container"> <div class="SplashScreen"> <h1> Snake </h1>

Why aren't jQuery mobile icons clipped properly in high resolution devices?

做~自己de王妃 提交于 2019-12-12 02:55:56
问题 I have a web application that targets various devices including iPad 1,2,3. I use jQuery mobile to customize the UI. I have a a jquery mobile . The image inside the checkbox is the 'home' and the 'search' image in iPad 3. It should have been the 'checked' and the 'unchecked' image however, like the way it works in iPad 1 and 2. The resolution of iPad 3 is not the same as iPad 1 and 2 which is why this happens. So how can I fix this having a common solution for all devices? 回答1: I found an