jquery-mobile

JQuery - Using navigator.notification.alert

时光怂恿深爱的人放手 提交于 2019-12-21 06:00:14
问题 I have a requirement for a popup to appear with a custom heading (having it appear from index.html on an app just looks tacky). I tried the suggestion at the end of the following link: Custom JavaScript alerts in iOS using PhoneGap HTML So I added the code below to my index.html in the script section: function showMessage(message, callback, title, buttonName){ title = title || "default title"; buttonName = buttonName || 'OK'; if(navigator.notification && navigator.notification.alert){

Framework with charts for mobile web application

别等时光非礼了梦想. 提交于 2019-12-21 05:42:18
问题 I'm working on a mobile web application I need to represent some data in a pie chart however I don't found any good framework that offer a good option and works fine on a mobile device, I would like to know some frameworks(free) that can help me. I will be amazed if you can give some basics examples, I'm thinking use ajax technology for show the charts. 回答1: Not sure if any of these fit your needs: http://www.sencha.com/products/touch/charts http://www.zingchart.com/ http://code.google.com

Fixed Header jQuery Mobile

微笑、不失礼 提交于 2019-12-21 05:40:51
问题 Is it possible to get fixed headers jQuery Mobile, with a row getting set in the top as in the link below? http://www.expedia.com.au/p/promos/Beach-Breaks.htm If you see the link above the header image goes up and the header comes and getting fixed on the top. Before scrolling up After scrolling up I’ve tried iScroll using that I can get the fixed header but not the effect as in the link above. Is there any link or tutorial on this matter? Thanks a lot for your time and help in advance. 回答1:

Using custom icons in jquery mobile list

蹲街弑〆低调 提交于 2019-12-21 05:36:07
问题 I have found documentation on using custom icons for jQuery mobile buttons and how to customize lists using existing icons but I am unable to find how to add custom icons to list views (i.e. PNGs I have created my self). I have tried setting the data-url : <li data-icon="action-arrow">...</li> to the name of the png file as explained in the jQuery mobile buttons but this doesn't work. 回答1: You need to add a CSS rule for your new icon: .ui-icon-myapp-email { background-image: url("app-icon

Issues with jQuery Mobile, NPM, and WebPack

送分小仙女□ 提交于 2019-12-21 05:32:08
问题 I've spent a while researching this and experimenting, and I'm sure I could hack something together to get it working but I'd rather understand what I'm doing wrong. It's well known that jQuery Mobile hates playing nicely. Yet everywhere I look, the culprit is the same: jQuery Mobile has an IIFE which looks something like: (function($, window){ // code })(jQuery, this) When loaded in Node (instead of a browser), this is set incorrectly and it fails to bind the module My Issue Is Different I

sliding left to right transition in jQuery Mobile

时间秒杀一切 提交于 2019-12-21 05:22:07
问题 I'm adding pages run time when swipeleft is happened. But when swiperight happened I can't return the previous page that I'm created with sliding from left to right . I have added the data-direction="reverse" to the pages but it didn't create left-to-right effect. Is there any way to do this? 回答1: A maybe easier way using JQM would be: <a href="page.html" data-transition="slide" data-direction="reverse">Link Text</a> or also, within js as: $.mobile.changePage("page.html", { transition: 'slide

jQuery Mobile popup is not opening on .popup('open')

时间秒杀一切 提交于 2019-12-21 05:11:07
问题 I am trying to use jQuery Mobile 1.3.1's popup to warn the user when login credentials are false. I started with a basic template from jquerymobile's documentation, but I couldn't make it work with $('#popupBasic').popup('open'); If I use it this way; <div data-role="page"> <div data-role="header" data-tap-toggle="false"> </div><!-- /header --> <div data-role="content"> <a href="#popupBasic" data-rel="popup">Tooltip</a> <div data-role="popup" id="popupBasic">I will change this text

PhoneGap or JqueryMobile? [closed]

℡╲_俬逩灬. 提交于 2019-12-21 03:54:25
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I've built and app on PhoneGap (Cordova) and run into plenty of difficulties along the way. Thus I was thinking my next build would be with jQuery Mobile. I was wondering if anyone had experience with both and had a recommendation or preference? 回答1: JQM just helps you build

jquery UI tabs width 100%

风格不统一 提交于 2019-12-21 03:44:06
问题 I have a need to use only 2 tabs in my application. So I want them to cover 100% of the width. Currently it aligns both tabls on left side and leave all kind of empty space on right side. What can I do so that both of my tabs cover 100% of the area. I am using jquery-ui-1.8.17.custom.css code <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> <script

jQuery Mobile - back button

时光怂恿深爱的人放手 提交于 2019-12-21 03:28:09
问题 I am developing the application using jQuery Mobile 4.1. In my app, I have two html pages like login.html and home.html. In the home.html have 3 pages. () like menupage, searchpage, resultpage. The project flow is login.html ---> home.html. In home.html, menupage is displayed as a first page. If I choose the some option in the menupage it will move to searchpage and then resultpage. consider, currently I am in the resultpage. If I press the back button on the mobile browsers (iPhone-safari,