jquery-mobile

pass parameters between two pages in two different files in JQuery Mobile

情到浓时终转凉″ 提交于 2019-12-18 05:24:08
问题 what is the best way for me to pass parameters between two pages in Jquery ?. Let's say I have a page1.html and page2.html and I want to pass the parameter id from page1 to page2. What is the best way of doing this ?. I currently use : $.mobile.navigate("#workOrderDetailsPage?id=" + woId); but that's for a two pages within the single page. But how can I do this for two pages in two separate files using JQuery Mobile ?. 回答1: Data/Parameters manipulation between page transitions It is possible

jQuery Mobile changePage() not working in Windows Phone

孤街醉人 提交于 2019-12-18 04:54:36
问题 I am developing an application using Phonegap for Windows Phone 8. I've used jQuery Mobile for interface design. the $.mobile.changePage() is not working. The page is not being changed. Is there any other way to change the page? Is there any other framework to design the interface for mobile? $("#btnSearch").bind('click', function() { showSpinner(); $.mobile.changePage("#pageSearch"); }); 回答1: I think this problem is the same as in WP7 described here. CHECK FOR PATH PROBLEM: if($.mobile.path

Take control of hardware back button jquery mobile

孤者浪人 提交于 2019-12-18 04:50:42
问题 I have gone through the following link and my situation is same like it. Disable hardware back function jquery mobile Situation: Device under test : Samsung S3 Page A: ListView with Names(A1, A2, A3) Page B: Consist of Form, Submit and Cancel button. User fills the form and click on submit button. And his data gets uploaded to server. Page is updated and Confirmation dialog is displayed that data is uploaded to server. Now the Issue arrives. Now when the user clicks on Hardware back button he

Aptana Studio 3 - Warnings when using data-role Tags of HTML 5

我们两清 提交于 2019-12-18 04:32:29
问题 I want to use Aptana Studio 3 for developing jquery-mobile projects. Since jquery-mobile uses HTML5 I have to use tag attributes like "data-role="header" which is OK for HTML5. For example: <div data-role="header"></div> But Aptana gives me warnings like: unknown attribute "data-role" How can I fix this, or is it an Aptana Studio 3 bug? 回答1: It more of a missing feature than a bug. In Preferences > Aptana Studio > Validation you can define regular expression that match to errors/warnings you

jquery mobile cannot hide submit button

最后都变了- 提交于 2019-12-18 04:29:18
问题 I am using the latest version of jquery mobile and my problem is that I have given a submit button an ID and then added some css to set the ID to display:none; For some reason this does not work. Has anyone had this problem before? 回答1: It's hard to tell what you're trying to do without any code but I think the problem stems from the fact that jQuery Mobile doesn't style your existing button but rather, hides the element and wraps it in a new div which is styled to look and behave like a

jquery mobile data-theme not working

孤街浪徒 提交于 2019-12-18 04:09:33
问题 I have a simple log in page and I'm trying to apply theme "b" to it, but it doesn't work. The page looks dark and not the way theme b should look like. Any idea? Thanks. My header <link rel="shortcut icon" href="img/favicon.ico"> <link rel="stylesheet" href="css/themes/default/jquery.mobile-1.4.0.min.css"> <!--<link href="css/ios_inspired/styles.css" rel="stylesheet" />--> <!--<link rel="stylesheet" href="css/jqm-demos.css">--> <script src="js/jquery.mobile-1.4.0/jquery.js"></script> <script

Failed to execute 'replaceState' on 'History' <local_URL> cannot be created in a document with origin 'null'

我与影子孤独终老i 提交于 2019-12-18 03:41:43
问题 I am creating a page for the transition. Clicking on the page to navigate to another page - works on Firefox, but it doesn't on Chrome. Error is showing : Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/Users/athite/Desktop/DEMO/page.html' cannot be created in a document with origin 'null'.** Here is my code: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel=

changePage “jumps” back to old page

浪尽此生 提交于 2019-12-18 03:04:33
问题 I've a big problem with a jQuery Mobile Application: I'm using custom functions (they are triggered by onClick) to switch the page with currentPage. It only happens on Android-Devices on sites in which has changed (due to ajax requests) with the integrated browser. iOS and Chrome works nice. After clicking on an element, the animation started but just before it ends, it switches back to the old page. After a half second, it switches back to the new. I made a movie of the bug here: http://www

In Jquery mobile, Header and footers are always hiding, when clicking inside the page?

孤街浪徒 提交于 2019-12-18 03:03:12
问题 I need, header and footer always fixed position. I don't want like the below url page. What will i do?. Help me........ http://jquerymobile.com/demos/1.0b1/#/demos/1.0b1/docs/toolbars/bars-fullscreen.html (In the above url, if u clicked inside the page. The header and footer will hide). I don't want like this 回答1: If anyone still finds this question and realises the above no longer works, like I did, the correct way to do it (which is correct today, 23/May/2012) is now: <div data-role="footer

Dynamically Appending Elements to jQuery Mobile ListView

元气小坏坏 提交于 2019-12-18 02:49:53
问题 I want to dynamically append data received via an url in JSOn format to my listview. But i can't figure out how it works. The mobile website retrieve the object in the following format: [ {"id":1, "start":"2011-10-29T13:15:00.000+10:00", "end":"2011-10-29T14:15:00.000+10:00", "title":"Meeting"} ] In the .html i have one listview and a function, where i try to append the received data. I show only the body. <body> <div> <ul id="listview"> <script>$.getJSON("url", function(data){ $.each(data,