jquery-mobile

Phonegap +jquery mobile + windows phone: Back button issue

六月ゝ 毕业季﹏ 提交于 2019-12-20 03:11:45
问题 I'm developing an app for windows phone. The app itself is working fine except for the back button (of the device). The back button can navigate back correctly until a certain point where it stops. At this point it shows the AJAX loader. If the back button is pressed again, the app closes. The structure of my app is as follows (I'm using a multi-page structure): App loads -> user has to pick language -> main screen with buttons to other pages At the main screen the user can navigate further

How to make the google map work like google map application in android phones

假装没事ソ 提交于 2019-12-20 03:10:04
问题 As you can see in the picture I have the zoom in zoom out button at the bottom left corner of the screen . I want to make it move little bit up or maybe add some new css to it so that its easier to use . Can some one help me out with this how to change this one ? Thanks & Regards .JS <script type="text/javascript"> /* * Google Maps documentation: http://code.google.com/apis/maps/documentation/javascript/basics.html * Geolocation documentation: http://dev.w3.org/geo/api/spec-source.html */ $(

IBM Worklight 6.0.0.1 - jQuery palette does not show up

心已入冬 提交于 2019-12-20 02:43:20
问题 In my Worklight project I can't get jQuery palette, it's always hidden. I searched, tried... No result. HTML and Dojo palettes are OK. Configuration: Eclipse Juno EE, Worklight 6.0.0.1, Installed IBM jQuery Mobile tools (comes with Worklight), jQuery-1.10.2 and jquery.mobile-1.3.2 Note: I was getting errors while trying to install Worklight directly from Eclipse so on the end i download it as a zip and installed that way. Update: I added picture I found of jQuery palette. Please note that it

how can I make jquery mobile “pagebeforeshow” event fire every time, not just on refresh

心已入冬 提交于 2019-12-20 01:01:54
问题 I have a jquery mobile page that uses the following code to hide a button when the page is accessed. $('div:jqmData(role="page")').live('pagebeforeshow',function(){ $("#apply_btn").hide() }); My problem is that the event only fires when the page is refreshed and not when arriving at the page from somewhere else in the site. I have tried using the "pageshow" event and the "pageinit" event but it still only fires when the page is refreshed. 回答1: Have a look at http://jquerymobile.com/demos/1.1

Which version of jQuery and jQuery Mobile work together?

Deadly 提交于 2019-12-19 19:49:35
问题 I am working on a side project and would like it to be a mobile app with geolocation incorporated. I'd like to start simple, though. Which version of jQuery and jQuery Mobile work best together? I've used some legacy versions on an iPad app, but I would like to know if more recent versions can work actually work together. Alternately, am I better off just using jQuery UI or something like Twitter Bootstrap? Any input on geolocation would be nice too. Input is greatly appreciated, because I

jQuery Mobile 1.1.1 Custom Select Menu - Placeholder Text not Visible

泪湿孤枕 提交于 2019-12-19 18:23:54
问题 After upgrading to jQuery Mobile 1.1.1 earlier today (7/13/2012) I noticed that all of my Custom Select menus no longer show the placeholder text on page load. Is there something I need to do differently in 1.1.1 to show the placeholder text in custom select menus? Help!?!? Here's a sample of my code: <div data-role="fieldcontain" class="ui-hide-label no-field-separator"> <label for="ceiling" class="select" data-theme="a">Ceiling</label> <select name="ceiling" id="ceiling" data-theme="a" data

How do I center a horizontal control group in the footer - changed in jqm 1.1.1?

。_饼干妹妹 提交于 2019-12-19 17:44:48
问题 This used to work to center the controlgroup in 1.1.0, but now it seems like it doesn't in 1.1.1. <div data-theme="a" data-role="footer" style="text-align:center;"> <div data-role="controlgroup" data-type="horizontal" data-mini="true"> <a href="foo" data-role="button">link1</a> <a href="boo" data-role="button">link2</a> </div> <div class="copy">© 2012 bigco</div> </div> 回答1: Probably align="center" attribute of data-role="controlgroup" div could be suitable for that. <div data-theme="a" data

Opening links in external device browser with Cordova/jQuery-mobile

为君一笑 提交于 2019-12-19 16:00:33
问题 I have a bunch of links in my app. I added rel='external' target='_blank' to all of them. In the Ripple emulator, or in a regular desktop browser, this works great. But on my Android (JB 4.2.2) it opens the link in the same window. Hitting "back" takes me back to the app, but everything is screwed and the app does not work as planned (script events do not react), until physically reloaded. How do I ensure that a link opens in the device's browser? Do I need to use a Cordova plugin? (I'm using

JS error when a linked page has jQuery mobile tabs and navbar widget

亡梦爱人 提交于 2019-12-19 11:48:11
问题 {{ See demo }} Page 1 is a jquery mobile page. Page 2 is a page with jquery mobile tabs and navbar widget. Page 3 is a page without jquery mobile tabs and navbar widget. The only structural difference between 2 and 3 is the presence of data-role=tabs. A) When each of them are run as is (you type the url on address bar), everything is fine. B) When you click from page 1 to page 2, i) js error: Uncaught SyntaxError: Unexpected token < VM10189 jquery-1.11.1.min.js:2 ii) the code outside <page/>

html5/jquery back button

送分小仙女□ 提交于 2019-12-19 11:39:05
问题 Is there a library or piece of code that makes a specific button act as like a proper browser back button where it will take you to the previous page that was loaded before? At the moment I'm just specifying the href of what I assume was the page that was previously loaded but came to the conclusion that this won't work because a screen could have been accessed from different screens. Is there an example of this or do I need to create my own logic that tracks page history some how? Thanks 回答1