jquery-mobile

how to animate two continuous popup windows with jquery mobile?

只愿长相守 提交于 2020-01-03 03:08:13
问题 What I want to do with jquery mobile is when I click a button on the first popup window, the first popup window will disappear with a flip animation, after which the second popup window will appear with the same kind of animation. I tried to use this in the event listener: $("#div_first").popup("close"); $("#div_second").popup("open"); The first popup window did disappeared. However the second popup window didn't popup. How can I do this with mobile jquery? Thank you! 回答1: You need to call

Event handler for unselection of an Item in select menu with mutiple properties enabled

陌路散爱 提交于 2020-01-03 03:07:04
问题 I am using a select menu which will allow multiple selections to be done. I have an event handler $("#idInventory").change(function () { $("#select option:selected").each(function () { }); }); which is called when an item is selected. Here I collect what ever items are chosen . But I also need to know when each selected item is deselected so that I can track what is deselected so that I can keep track if something already chosen is now deselected by user. UPDATE: I am not getting this event

How to go back in jquery mobile without triggering the animation?

寵の児 提交于 2020-01-03 02:58:06
问题 Going back in jquery mobile will trigger a $.mobile.changePage() with the location.hash as explained in the jquery mobile docs. I wan't to be able to do a history.go(-N) without anything happening except the history of the browser being shortened by the last N elements. So I wish to avoid the animation of $.mobile.changePage() that will hide and show a different page. Is it possible ?, and how can I achieve this ? 回答1: This what I did, but I'm not happy at all with it. But it does the trick.

Login working for Iphone but not android

不打扰是莪最后的温柔 提交于 2020-01-03 02:26:07
问题 I am having issues with my login with android platforms. The following code is used with my cordova phonegap build to log on. The apple device's work fine and log in without any issues. The android devices all log in on the second attempt. Android device: The first time I log in with my android devices i get the following error: Synchronous request timed out after 10 seconds for the 0th try, URL: Synchronous request timed out after 10 seconds for the 1th try, URL: Synchronous request timed

How to Prevent the page background image from stretching in jQuery mobile 1.4.0?

浪子不回头ぞ 提交于 2020-01-03 02:01:08
问题 In my jQuery mobile 1.4.0 app I have a Page which contains a list view the Problem is that when I have added a background image for this page as the list elements are becoming larger as the background stretchs with the content and this apears clearly on mobile devices more than jsFiddle ,this is my jsfiddle . How can I make the background image to be fullscreen and fixed , not stretched with the content? Please help me .. Here How I add a background image to my Page: #EmPListPage{ background

Chat app using jquerymobile web app framework

心不动则不痛 提交于 2020-01-02 18:57:22
问题 I my previous question I asked how to implement the chat feature using client side technology especially using jquery mobile. I had also put up the question in the jquery mobile forums too but I was disappointed. Finally I was able to set-up a chat feature on my local machine by referring this blog I am running jsJac client side chat but now I am implement the same thing using jquery mobile frame work I googled and try to figure out how it can be done, but could not find any examples as such.

how to save the offset of current scroll position for Jquery Mobile page

ぃ、小莉子 提交于 2020-01-02 18:36:20
问题 I am trying to save the offset of the current value of the page in a global variable and trying to use it for scrolling back to the same position when page is reloaded . Here is my code <script> $(document).on("pagebeforeshow", '#outerPage', function(){ $(document).on('vclick','#outerPage',function(e){ //alert('yo i am clickable now'); var parentOffset = $(this).parent().offset(); //or $(this).offset(); if you really just want the current element's offset var relX = e.pageX - parentOffset

Custom Arabic font is not working on Android using jQuery mobile 1.4.0 & phonegap

蓝咒 提交于 2020-01-02 14:05:54
问题 I have been trying to use custom arabic font file "ttf" in my jQuery mobile 1.4.0 & Phonegap app for android but it didnt work on android version 4.x , the default arabic font displays in the emulator and in the actual device not my custom font . How can I use custom arabic font in jQuery mobile 1.4.0 and phonegap for android v4.x and makes it work ? Please help me .. @font-face{ font-family:'W3Arabic'; src: url("Fonts/W3Arabic.ttf"); } font { text-shadow:0 0 0; -moz-user-select: none;

Custom Arabic font is not working on Android using jQuery mobile 1.4.0 & phonegap

牧云@^-^@ 提交于 2020-01-02 14:04:39
问题 I have been trying to use custom arabic font file "ttf" in my jQuery mobile 1.4.0 & Phonegap app for android but it didnt work on android version 4.x , the default arabic font displays in the emulator and in the actual device not my custom font . How can I use custom arabic font in jQuery mobile 1.4.0 and phonegap for android v4.x and makes it work ? Please help me .. @font-face{ font-family:'W3Arabic'; src: url("Fonts/W3Arabic.ttf"); } font { text-shadow:0 0 0; -moz-user-select: none;

jQuery Mobile - Loading Message [duplicate]

僤鯓⒐⒋嵵緔 提交于 2020-01-02 10:03:33
问题 This question already has answers here : jQuery Mobile loading message (11 answers) Closed 4 years ago . I am using jQuery Mobile for the first time to make it so that I can swipe back to the previous page, which I have managed to get working. However I have noticed a big ugly "loading" message at the bottom of the screen. After googling I have seen a function called $.mobile.hidePageLoadingMsg(); which I added inside my $(document).ready(function() but the loading message is still there. How