jquery-mobile

slow list view scrolling on iPad when scrolling in an overflow:auto div

↘锁芯ラ 提交于 2019-12-20 12:07:07
问题 I am developing a Phonegap app for the major os platforms and am currently testing it on an iPad with iOS 5. Im using jquery mobile. So for large screens i've used the splitview jquery mobile plugin. http://asyraf9.github.com/jquery-mobile/ I've put a $scrollArea.css('overflow-y','auto'); $scrollArea.css('-webkit-overflow-scrolling','touch'); to make the page scroll instead of using iscroll like the plugin was using. Now whats happening, is that the page isn't loading/repainting as the user

Jquery-mobile slide in menu solution

*爱你&永不变心* 提交于 2019-12-20 10:39:22
问题 Hi im trying to build a phonegap application using jquery mobile. i would like to create a slide in menu like in the facebook application. i have searched a lot but all the plugins or solutions are old and some even dont work in the demos. any suggestions how to do this? the idea is the that there should be a button on the left side of the header of a jquery mobile page, when pressed it slides in the menu from the left side simultaneously pushing the page to the right side. 回答1: Have you

Why my Mobile Safari cache won't clear?

家住魔仙堡 提交于 2019-12-20 09:53:39
问题 I'm trying to debug a site on my iPhone4 (iOS4) iPad1 (iOS3.3) and desktop. My problem is I cannot clear the iPhone cache at all. If I add alerts/consoles to the js files I'm debugging, they show up on iPad and desktop, but the iPhone just keeps reloading from the cache. If I clear the cache through settings>safari>delete browser history, cache, cookies and in Safari delete all bookmarks and remove the files on the server, iPad and desktop break (missing files) but the iPhone still loads the

JQuery.Validate adding dynamic rules with messages

混江龙づ霸主 提交于 2019-12-20 09:39:56
问题 I have a form on which I am using jquery.validate. I initially call validate with a set of rules and custom messages... $("#formName").validate( { rules: { myExistingInput: { required: true } }, messages: { myExistingInput: { required: "Enter something" } }, ignore: null, // include hidden fields (see below) submitHandler: function(form) { // do stuff }, invalidHandler: function(event, validator) { // do stuff (some of the fields may have been hidden by a collapsible panel // if there is an

More than 5 items per line in jQuery Mobile navbar

倖福魔咒の 提交于 2019-12-20 09:35:08
问题 I have unsuccessfully looked for a variable to change the maximum number of items in a single line in a navbar. I am just starting with jQuery Mobile, trying to create a navbar with around 7 single-letter items. The navbar wraps automatically when more than 5 items are present, which is undesirable for my project. Can anyone point me to a piece in the code or css that regulates this behavior? 回答1: Using jQuery mobile 1.4.0, all I had to do is to create my own CSS class: .mytab { width: 12.5%

jQuery Mobile date picker

五迷三道 提交于 2019-12-20 09:33:21
问题 Is there someone out there that has a good date picker for jQuery mobile? I'm going to let the user select a "from" date and a "to" date and I haven't found anything good for this situation. Any ideas? 回答1: I suggest Datebox https://github.com/jtsage/jquery-mobile-datebox or Mobiscroll http://mobiscroll.com/ If you want something in an Android flavour, try my very own Mobi Pick http://mobipick.sustainablepace.net/ 回答2: Try Mobiscroll, a customizable datepicker optimized for touch devices 回答3:

How to speedup jquery mobile / phonegap?

柔情痞子 提交于 2019-12-20 09:21:37
问题 I have a small web app. Seven pages, 3.6 KB index.html and 855.5 KB total. The only odd thing i have is a database (~500kb) in Javascript with many lines like: $.data(db,'Aarstraße',['34236:1','34246:2','34270:4','34290:6',...]); I tested it on iPod/iPhone and Android (HTC Magic) and it is very slow: Startup iPhone: 14 seconds Android: 21 seconds Simple page transition (slide) iPhone: 3-4 seconds Android: 4-6 seconds How can I make this fast? I already removed the box shadow. Update I remove

Switching from Jquery Mobile to AppFramework

江枫思渺然 提交于 2019-12-20 08:00:08
问题 I've built a project using Jquery Mobile. JQM seems perfect for fast prototyping but the end result on an iphone 3GS/IOS 5.1 is far from fluid. I've tried a lot of hacks/tricks to make it faster and got rid of transitions but still, I cannot get a satisfying result. I've been looking around. What I need is a lightweight solution with a decent UI (JQM is perfect for what I need in that domain). trigger.io and AppFramework seem to be the 2 solutions which are available (maybe I'm missing some

Rails jquery mobile Routing/Rendering Issue

▼魔方 西西 提交于 2019-12-20 07:49:05
问题 I'm following a tutorial http://fuelyourcoding.com/getting-started-with-jquery-mobile-rails-3/ transforming the views in a straightforward scaffolded Rails 3 application into a jquery mobile front end. After I create a new record I'm passed to the show view and actually see the results of the show view as in the two newly created fields of the record are shown, however, the URL is http://localhost:3000/currencies in the browser. And when I view the source, the source is actually the index

Mobile browsers doesn't support session variables?

拥有回忆 提交于 2019-12-20 07:35:25
问题 I have a browser version of my web app and I have some values stored in cookies. Now I am making a mobile version and it seems that my cookies are not working. Is it possible to use cookies on mobile devices? I am trying to perform this code and my php is giving me an empty value: $(document).ready(function() { var session_lang= '<?php if(isset($_SESSION['SESS_LANGUAGE'])) echo $_SESSION['SESS_LANGUAGE'];?>'; if (session_lang!='') { check_and_change(session_lang); } }); Is there any other way