jquery-mobile

Tree structure with Check boxes in JQuery Mobile

China☆狼群 提交于 2019-12-21 09:26:18
问题 Is it possible to have a tree structure with check boxes in JQuery MObile. I did not find any thing in demos. I wanted something similar this image: Is there any alternative way we can achieve this? 回答1: Well it's just a concept but I have a couple working examples: http://jsfiddle.net/JYn53/2/ http://jsfiddle.net/JYn53/4/ HTML <div data-role="page"> <div data-role="content"> <div data-role="collapsible" data-collapsed="true"> <h3> <input type="checkbox" name="checkbox-1a" id="checkbox-1a"

Take a picture with mobile using javascript

南楼画角 提交于 2019-12-21 09:19:13
问题 I'm looking for a way to take a picture with a phone/tablet on my website, the behavior should be : The user click a "camera" button. The mobile camera show on. The user take a picture The picture is stored into a variable for a future usage I can't figure out how to do that, i heard that the "phonegap" framework does that but i can't use it since i'm on a MVC c# project. It seems to me that it will be hard to reproduce since i doubt that a web site have the right to launch any app from the

jQuery Mobile Popups and Dialogs

老子叫甜甜 提交于 2019-12-21 09:11:52
问题 jQuery mobile 1.2 alpha introduces Popups while it already has a similar widget, called Dialogs. They both seem very similar in nature. What are the technical differences between Popups and Dialogs? What Popups can do (any practical usecase as example preferred) that is impossible with Dialogs? 回答1: They are quite different beast. Here is my opinion based on my limited experience. Dialogues Dialogues take over the page, they contain a fullscreen dark background to make the "dialog" appear to

jQuery Mobile and “query parameters” for hashbang navigation

二次信任 提交于 2019-12-21 09:03:42
问题 I am using jQuery Mobile and have few pages in one HTML page. When opening these pages, I'd like to pass parameters for them, so that their parameters are persistent in URL. E.g. <a href="#map?x=4&y=2" It would open and I could access parameters X and Y in beforeshow event. Is this possible and how? What alternative means you suggest for encoding parameters with hashbangs? 回答1: Yes, you can have links like the one you showed: <a href="#map?x=4&y=2"> Click here </a> Then, on before show you

jQuery Mobile and “query parameters” for hashbang navigation

懵懂的女人 提交于 2019-12-21 09:03:34
问题 I am using jQuery Mobile and have few pages in one HTML page. When opening these pages, I'd like to pass parameters for them, so that their parameters are persistent in URL. E.g. <a href="#map?x=4&y=2" It would open and I could access parameters X and Y in beforeshow event. Is this possible and how? What alternative means you suggest for encoding parameters with hashbangs? 回答1: Yes, you can have links like the one you showed: <a href="#map?x=4&y=2"> Click here </a> Then, on before show you

Is there a way to refresh your phonegap application - eg, build the page and start running the scripts from the beginning?

跟風遠走 提交于 2019-12-21 07:15:28
问题 Is there any way to do this? E.g., if a user starts the app with no internet connection, no remote scripts can be loaded, and the application basically can't run and I display a "No internet" page. But if the user gets internet later and the application is still running, is there any way to just "restart" ? 回答1: how about - document.location = "index.html" PhoneGap applications are just like an embedded website - you should be able to go to any hyperlink you wish (mind the whitelists). Of

jquery mobile selected option not updating on 'refresh'

放肆的年华 提交于 2019-12-21 06:39:11
问题 Using jQueryMobile, when I change the contents of a select widget and then call 'refresh' on it, the text of the selected option is not changed. Here's the scenario... The 'select' widget exists in the page div already. When the user goes to that screen, the options are dynamically created based on the button they selected to go to that page. This option list is built and added as per $('#searchReasonList').append(optionList) The first time into the new page all works well. When they navigate

window.location not work properly

久未见 提交于 2019-12-21 06:37:49
问题 Hi all I am navigating from one html page to another as: window.location = "test.html"; In test.html I have header as: <script type="application/javascript"> function redirect() { alert("inside redirect:"); //window.location = url; //history.back(); history.go(-1); return false; } </script> <div data-role="navbar"> <ul> <li> <a href="#" data-theme="b" onclick="history.back(); return false;">Go Back</a></li> <li> <a onclick="redirect()" data-icon="back" data-iconpos="notext" data-direction=

how to prevent bleeding through of clicks on Android using Jquery Mobile?

若如初见. 提交于 2019-12-21 06:19:49
问题 I have a Jquery Mobile page. In my header I have a button to open a hidden layer above my actual page. This layer also contains a header with a button on the same spot. If I show the layer and click the button, it "bleeds" through to the button below firing both. Not sure if the HTML is any help: <div data-role="page" id="base" data-wrapper="true"> <div data-role="header" data-theme="a"> // first button <div class="headWrapLeft ui-btn-left"> <div data-role="controlgroup" > <select data

how to prevent bleeding through of clicks on Android using Jquery Mobile?

旧城冷巷雨未停 提交于 2019-12-21 06:19:27
问题 I have a Jquery Mobile page. In my header I have a button to open a hidden layer above my actual page. This layer also contains a header with a button on the same spot. If I show the layer and click the button, it "bleeds" through to the button below firing both. Not sure if the HTML is any help: <div data-role="page" id="base" data-wrapper="true"> <div data-role="header" data-theme="a"> // first button <div class="headWrapLeft ui-btn-left"> <div data-role="controlgroup" > <select data