jquery-mobile

IE10 freezes with jquerymobile application

耗尽温柔 提交于 2019-12-24 01:46:05
问题 I have a jQueryMobile website that is freezing up on IE10 (all other browsers appear to be okay). The behavior is strikingly similar to whats recorded here (https://github.com/jquery/jquery-mobile/issues/5695). I've taken a profile trace of the app at the time it happens, and it looks a bit like this (ordered by Inclusive time). Here's a link to the full csv export of the profile (http://db.tt/JFTFyeGP) handle 135,142 68,758.53 1,018.14 https://webstore.revtrak.com/Portal/Scripts/jquery-1.9.1

Back button handler in jQuery Mobile (Android) PhoneGap

余生长醉 提交于 2019-12-24 01:24:39
问题 Is there any way to handle back button (device backbutton) as default functionality to move back page? I need to implement the same functionality on back button goes to previous page. If there is no previous page (first page) it exit the application. Is this possible in PhoneGap? I also need to pop page before going to push another page is this posible in jQuery? 回答1: Checking window.location.length would be the easiest way to determine if you're on the first page, but this isn't available in

Back button handler in jQuery Mobile (Android) PhoneGap

泪湿孤枕 提交于 2019-12-24 01:21:43
问题 Is there any way to handle back button (device backbutton) as default functionality to move back page? I need to implement the same functionality on back button goes to previous page. If there is no previous page (first page) it exit the application. Is this possible in PhoneGap? I also need to pop page before going to push another page is this posible in jQuery? 回答1: Checking window.location.length would be the easiest way to determine if you're on the first page, but this isn't available in

Phonegap - reliable page width detection?

主宰稳场 提交于 2019-12-24 00:58:40
问题 Can anybody recommend a good way to detect screen width on a HTML5 Android App built in Phonegap? Our page is reasonably fluid - but I need to switch logo's/footer graphics for smaller screens - so I inject a stylesheet for smaller versions - seems to work fine in general, some phones (HTC Wildfire)seem to think they are 320px width when they are only 240 so I'm struggling! This is my current detection code - any suggestions would be really helpful! Cheers Paul $(document).ready(function() {

JQ UI Draggable on iOS: initiating dragging in taphold-handler

一笑奈何 提交于 2019-12-24 00:58:39
问题 In our app we want to drop from one list to over. Problem is, when there are many items in list - it's impossible to scroll when elements are dragable. As workaround we want to disable drag-ability of elements and enable it only when user makes a long tap on an element. $('li').bind('taphold', function (event, ui) { console.log('taphold'); clearAll(); // clearing all other catched $(this).addClass('catched') $(this).draggable('enable'); }); here is jsfiddle https://jsfiddle.net/nrxaqc34/10/

How to use pageinit for multiple data-role=page in one html file

江枫思渺然 提交于 2019-12-24 00:36:20
问题 I have multiple pages in my one html file. I trying to implement the pageinit event handler on the second data-role="page". So I declared pageinit inside it's specific data-role="page". <div data-role="page" id="foo3" data-dom-cache="false"> <script> $(document).on('pageinit','#foo3' , function(){ abcsong_file_path = '/android_asset/www/audio/abcsong.mp3'; my_abc = new Media(abcsong_file_path); my_abc.play(); var i =0; var time; function my_loop(){ setTimeout(function (){ var my_alphabets = [

How to get Back button working between remote and local jQuery Mobile pages?

此生再无相见时 提交于 2019-12-24 00:27:31
问题 I have a local jQuery Mobile project going (inside PhoneGap, thus file:// protocol) where I sometimes need to fetch external pages (using http://) from a server where the content too are jQM pages with almost identical markup (except for the content, which is generated from a CMS). Setting $.mobile.allowCrossDomainPages to true gives me the page, and that is all right. Going Back, however, fails. I get stuck in a place where /www/index.html is not found on the server (like, doh, of course..).

Unable to get JQuery-Mobile collapsible expand/collapse event to execute

旧城冷巷雨未停 提交于 2019-12-23 22:51:35
问题 I have the following demo HTML file that I am tying to use the JQuery-Mobile collapsible expand/collapse events and I am not able to get the JavaScript event to fire. I am basing this off the JSFiddle example here: http://jsfiddle.net/6txWy/ I feel like I am just overlooking something simple but here is my HTML file: <html> <head> <title>References</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name=

Swipeleft/swiperight not working

旧城冷巷雨未停 提交于 2019-12-23 22:32:28
问题 I'm making a presentation for the iPad. I want to use the swipeleft and swiperight from the jquery-mobile library. At the moment I'm testing everything in google chrome. I did enable 'Emulate touch screen' My problem: I don't get a message in the console, so the swipe doesn't work. The versions I'm using: jquery : jquery- 2.1.1 .js and jquery-mobile : jquery.mobile- 1.4.5 .js $(document).ready(function(){ // Previous/next slide on swipe $('.bg, header').on('swipeleft', function(e){ console

phonegap touch event / div overflow

南楼画角 提交于 2019-12-23 22:17:52
问题 My problem: I have a css div with a table (jquery-mobile 1.0), - If I add too much rows in the div (overflow) the touch event isnt't fireing the javascript functions...any idea? it,s not fireing the functions and " overflow, before it's working fine !) $('#mytable').append('<tr><td width=20%> <a href=add.html onclick=setId('+row.UserId+');> <img src=./icons/patientendaten.png width=48px height=48px></a></td> <td width=20%>'+row.Datum+'</td><td width=20%>'+row.Patient+'</td> <td width=20%>