jquery-mobile

jQueryMobile running on Android / PhoneGap refuses .load / .ajax

我与影子孤独终老i 提交于 2019-12-23 12:14:02
问题 I really hate asking questions that I feel were asked a thousand times before. This is one of those questions I feel others must have encountered, but having searched stack overflow, none of the supposed solutions work for me so I must be doing something wrong..... I have an extremely simple app setup. index.htm, and terms.htm. There is some textual data in test.htm. I set both $.support.cors = true; and $.mobile.allowCrossDomainPages = true; at the appropriate time after stuff has loaded. At

how do I disable the phone's back button in Android using Jquerymobile, PhoneGap

感情迁移 提交于 2019-12-23 11:58:21
问题 Could someone please tell me how to disable Android's back button (That is the back-button found on all Android phones). I am using Jquery mobile with PhoneGap. I find this online in the Cordova documentation, but this does not work for me. Back button event is not even registering. function onLoad() { console.log("**** INSIDE ONLOAD FUNCTION *****"); document.addEventListener("backbutton", onBackKeyDown, false); } // Handle the back button function onBackKeyDown() { // Pressing the back

Can't change jQuery Mobile background color?

≡放荡痞女 提交于 2019-12-23 10:25:38
问题 I'm implementing jQuery Mobile for the first time and am having a hard time changing the background color of my site's body. Instead of posting all of the HTML and CSS here (because it's long), you can look at the source here: http://www.tommaxwell.me I've tried adding it to the desktop media query, the body of the site outside of any media queries, and no luck. This is weird, but I've never used jQuery Mobile before. 回答1: Change this css properties in your siteredesign.css(make sure it

HTML link to launch an app if installed or go to a website if not

谁说我不能喝 提交于 2019-12-23 10:24:07
问题 I have a mobile site written using jQuery Mobile and I have social icons. What I want is that if the user clicks on the Facebook icon to open the facebook app only if the user has the facebook app installed on their phone. If the user does not have the app on the phone I need it to go to Facebook's mobile site instead. I am using this link to open the app: <a href="fb://profile/212971392077465" class="facebook">My Fanpage</a> This works, but now I need help with code to open the mobile site

Jquery mobile changepage with back button not working

大兔子大兔子 提交于 2019-12-23 10:16:28
问题 I have 4 pages within my JQM main HTML file. When I switch to one using changepage it's fine the first time, but I use a data-rel=back button to go back and this switches to the previous page but then bounces back to the page that has the back button. Should I just not use data-rel=back? If not what alternative is there? Using JQM 1.3.1 $("#listView").on("vclick","li", function(e) { //ajax call to get results for second page $.mobile.changePage('#second'); } Button on second page <a href="#"

Jquery mobile changepage with back button not working

被刻印的时光 ゝ 提交于 2019-12-23 10:15:30
问题 I have 4 pages within my JQM main HTML file. When I switch to one using changepage it's fine the first time, but I use a data-rel=back button to go back and this switches to the previous page but then bounces back to the page that has the back button. Should I just not use data-rel=back? If not what alternative is there? Using JQM 1.3.1 $("#listView").on("vclick","li", function(e) { //ajax call to get results for second page $.mobile.changePage('#second'); } Button on second page <a href="#"

Swipe event triggers tap event for ipod touch

雨燕双飞 提交于 2019-12-23 10:14:25
问题 I am using jquery mobile beta and jquery 1.6. On ipod touch, a swipe event is also trigerring the tap event. This issue is not hapenning on android devices. I am trying to google out the solution, but looks like there are not many with the same problem. Is there something very basic that I am missing?? $("div.totapandswipe").bind('tap',function(event, ui){ alert('event'); }); $("div.totapandswipe").bind('swipe',function(event, ui){ alert('event'); }); Thank you for the help! 回答1: I have found

jQuery Mobile programmatically reinitialise/restart app

∥☆過路亽.° 提交于 2019-12-23 09:32:37
问题 I am writing an app with phonegap and jquery mobile. For handling unknown errors I need to completely restart my app and reinitialise all variables and dynamic content back to being the equivalent of the first run. Originally I was just using $.mobile.changePage($'#home') which obviously doesn't work because it doesn't reinitialise any of the dynamic content or variables so I end up with double ups. Is there a method I can call in jquery mobile to completely restart the app and set everything

align to right an element in jquery mobile

冷暖自知 提交于 2019-12-23 08:39:10
问题 I've created this elements form: <div class = "ui-grid-a"> <div class= "ui-block-a"> <div data-role="fieldcontain" class = "ui-hide-label"> <label for="birth-place">Birth Place</label> <input type="text" name="birth-place" id="birth_place" value="" placeholder="Birth Place" /> </div> </div> <div class = "ui-block-b"> <div data-role = "fieldcontain" class="ui-hide-label"> <label for="province">Province</label> <input type="text" name="province" id="province" value="" placeholder="PR" /> </div>

Double scroll bars when using the Panels of jQuery Mobile 1.3 in ASP.NET MVC 4

半城伤御伤魂 提交于 2019-12-23 07:42:04
问题 I cannot figure this out. Once I put the following code in the layout page and view it in a browser I'm showing 2 vertical scroll bars. <div data-role="panel" id="mypanel" data-position="right" data-display="push" data-theme="a"> </div><!-- /panel --> 回答1: Was having a similar problem and noticed that was only when using my custom theme. I was adding my custom theme on the wrong order to the page and that was causing the problem. The right order is: jquery.mobile.CUSTOM.min.css jquery.mobile