jquery-mobile

jQuery Back Button - transaction hidden page

半世苍凉 提交于 2020-01-05 07:18:16
问题 I’ve build a small single file jQuery Mobile page/site. My site has following flow: HomePage -> DataPage -> EditData I have a problem with back button. I’ve tried to use <a href="#HomePage " data-theme="b" data-icon="arrow-l" data-transition="reverse slide">Back</a> with href pointing to HomePage All works fine here except the transitions look like it is scrolling through empty page in the middle . Once I remove the reverse all works fine, but the animation is in the wrong direction according

Symfony 2 and jQuery mobile 1.1.1

梦想与她 提交于 2020-01-05 04:57:33
问题 I have created a simple page using Symfony 2.1 and jQuery Mobile 1.1.1. My whole page is behind a firewall. After logging in, the menu appears well, but the URL in the window's location bar is localhost/mobile/web/app_dev.php/loginCheck (which is Symfony's login_check URL). When I navigate to another page by using one of my menu buttons, everything goes fine, but when I press the Back button in the new page's header, it tries to go back to the loginCheck page, which, of course, fails, as

jQuery Mobile Slider create event not firing

[亡魂溺海] 提交于 2020-01-05 04:42:24
问题 First time I am using jquery mobile the slider create event seems to not want to fire. According to jQuery Slider page the following events should work (create/start/stop), I did get start/stop to work but not the create, code below: <script> $(function () { $("#slider-s").slider({ create: function (event, ui) { console.log("creating"); }, start: function (event, ui) { console.log("start moving"); }, stop: function (event, ui) { console.log("stop moving"); } }); }); </script> <input type=

Align Elements horizontally, jquery mobile

此生再无相见时 提交于 2020-01-04 13:48:06
问题 I havent much experience on jquery mobile or related mobile UI frameworks, I am finding it difficult to align elements horizontally. I want to horizontally align text field and select tag. so that they appear inline. I tried data-type="horizontal" and data-inline="true" . but they are not working. Here's the code i am using, <div data-role="controlgroup" data-type="horizontal"> <label for="cs" class="fieldLabel">option 1: </label> <select name="cs[param_string_1]" id="cs[param_string_1]" data

Align Elements horizontally, jquery mobile

空扰寡人 提交于 2020-01-04 13:48:05
问题 I havent much experience on jquery mobile or related mobile UI frameworks, I am finding it difficult to align elements horizontally. I want to horizontally align text field and select tag. so that they appear inline. I tried data-type="horizontal" and data-inline="true" . but they are not working. Here's the code i am using, <div data-role="controlgroup" data-type="horizontal"> <label for="cs" class="fieldLabel">option 1: </label> <select name="cs[param_string_1]" id="cs[param_string_1]" data

jquery-ui-map fit bounds with a polyline?

点点圈 提交于 2020-01-04 09:03:15
问题 I'm working on a mobile app using jQuery Mobile. I also you the plugin "jquery-ui-map" to do my map (that helped alot with display issues using only GMap with jQM). I'm able to add polyline on the map and it works just fine. But when I try to use the fitBounds method, it doesn't work. In fact, it zoom out alot. But not on my bounds. Here is my code : // Added some data, so you can understand the structure // of variable "plan" plan[0].lat_a = 45.4681; plan[0].lng_a = -73.7414; plan[0].lat_b =

Persistent HTML outside of jQuery Mobile Pages

送分小仙女□ 提交于 2020-01-04 07:58:25
问题 I want to include a bit of HTML outside of the <div data-role="page"> element on my main page. This HTML shouldn't be replaced when a new page is loaded in via ajax. The example application for this is to have a small absolutely positioned div in the top-right that is only displayed upon errors related to AJAX calls, or status updates with the application. If I try and include any HTML in the body of my index.html page, it gets replaced by jQuery Mobile immediately. I don't want to have to

fixed positioned button in mobile website

孤人 提交于 2020-01-04 07:54:10
问题 I am building a mobile website and need a fixed positioned button (for quick link to scroll to top) that should move across while scrolling the screen. fixed position is not supported by mobile browsers. Can anyone suggest the way around for the same. I am using twitter bootstrap. I have observed fixed position header and footers for mobile in jquery mobile framework but could use it in twitter bootstrap page. Thanks in advance. 回答1: You can use a navbar-fixed-top or navbar-fixed-bottom

Is it possible to disable jQuery's mobile responsive design?

我只是一个虾纸丫 提交于 2020-01-04 07:18:37
问题 It's pretty straightforward. I've built a layout using jQuery Mobile UI, but i don't want the responsive layout functionality. Is it possible to remove it? 回答1: Try this?... wrap a wrapper div to all of your contents in the data-role="content" section. Then give the fixed width to this wrapper. Like that, HTML <div data-role="content"> <div class="resize_box"> <!-- your content here --> </div> </div> CSS .resize_box{ width:500px; margin:0 auto; } 来源: https://stackoverflow.com/questions

Redirect on change of large select menu in jQuery Mobile

…衆ロ難τιáo~ 提交于 2020-01-04 06:53:07
问题 I'm having an issue with trying to redirect to another page when a user selects an option from a <select> menu in jQuery Mobile. Below is a very small example similar to what I'm trying to do that demonstrates the issue I'm having. The problem is that when the list of options is too big to fit on the screen, the redirect does not work. It works fine when the options fit on the screen. (You can reproduce this in a desktop browser by making your window really small.) <!DOCTYPE html> <html>