jquery-mobile

save text value to listview & start count the time

我与影子孤独终老i 提交于 2019-12-25 02:28:44
问题 I have TWO main questions that I really would have help with. I have googled and searched for some day now without any help, but if you know any links that I maybe haven't watched or any site with help, then give me. I would appreciated it, OR if you already have the code/sample code, would help :-) I work with PhoneGap & JQuery Mobile right now, and the thing is this. I have a 'textarea' there you write something, then a save button, what I want it to do is that when I press the save-button,

Origin null is not allowed from Control-Allowed-Origin when use jquery header link button

↘锁芯ラ 提交于 2019-12-25 02:27:26
问题 I want to only change page with jquery mobile/cordova on android phone. My simple codes: <div data-role="header" data-position="fixed"> <h1>Event List</h1> <a href="options.html" data-icon="gear" class="ui-btn-right">Options</a> </div> If I click options button,"Error loading page" looks for few seconds.Logcat: XMLHttpRequest cannot load file:///C:/Users/btstajer/Desktop/workspace/Fetcher/assets/www/options.html. Received an invalid response. Origin 'null' is therefore not allowed access. Hey

JQuery Mobile ui-overlay Hiding Elements

坚强是说给别人听的谎言 提交于 2019-12-25 02:25:32
问题 I am creating a JQuery Mobile web-app and am running into an interesting problem. My web-app dynamically populates a list-view from JSON data. The problem: When the user taps on an element in the listview in Page 1, Page 2 loads fine, however, when they tap on the "Back" button, Page 1 does not display correctly. I initially thought that the rows were not being populated, however I have not figured out that they are being hidden by the JQuery Mobile CSS: (starting on line 946 of JQuery Mobile

JQuery Mobile changePage() flaky when called from dynamically created select option?

泄露秘密 提交于 2019-12-25 02:22:04
问题 I have a Jquery Mobile page with a simple select-menu. <div class="selectMenuContainer"> <div data-role="fieldcontain"> <label for="selectmenu" class="select">Heroes:</label> <select name="selectmenu" id="heroSelectMenu" class="heroSelectMenu" > <option value="0">Choose One...</option> <option value="Option 1">Option 1</option> <option value="Option 2">Option 2</option> </select> </div> </div> On the event pageinit , I use jQuery to .remove() everything from the select-menu, and then I

Jquery mobile maps & Microdata on iPhone app

一曲冷凌霜 提交于 2019-12-25 02:16:44
问题 I have been using 'microdata' and query maps ([example])1 to show some markers on my app. Everything is working well on the web or local preview, but when using the simulator or iPhone the markers aren't appearing. Would there be anything that is stopping the data displaying on an iOS device? It also seems to be breaking the home button. Few extracts below: <!-- !Maps ===================== --> <script src="_config/microdata.js" type="text/javascript"></script> <script type="text/javascript">

Backbone - Url's hash becomes empty on orientation change

与世无争的帅哥 提交于 2019-12-25 02:14:16
问题 I'm developing a Phonegap mobile application, using jQuery Mobile, Backbone and RequireJS. I configured jQM to let Backbone manage the routing. Whenever I change the orientation of the device, it seems that the whole layout is being rendered again (the first second or so, I can see just plain text, without the jQM visual enhancements and paging, and this happens when the app starts executing as well) and it goes to the first page, even though another one was being displayed. Did somebody

jQuery Mobile and iScroll Problem

醉酒当歌 提交于 2019-12-25 02:12:35
问题 So I had found a good solution to solve the fixed header and footer problem in jquery mobile which is the iscoll library. To get the iscroll library to work with the jquery mobile, I'm using this third party script: https://github.com/yappo/javascript-jquery.mobile.iscroll Everything works just fine for my listing pages (using jquery mobile list view). My listing pages are loaded dynamically using ajax. But then, when I created a product detail page that is supposed to scroll, it didn't work

$.mobile.changePage instead of $.ajax

天大地大妈咪最大 提交于 2019-12-25 02:09:09
问题 I'm new in jquerymobile , so, how can i migrate from a simple $.ajax() call to a $.mobile.changePage ? my normal ajax its something like this (from a click event): $.ajax({ url: 'mobile/' + content, type: 'GET', success: function (data) { $(".content").html(data); }, error: function (XMLHTTPRequest) { } }); basicly, all the ajax call (some simple html) will be droped inside the $(".content"); so, how can i do this, using changePage ? i try this, but he only fade the page and nothing happen, i

how to create auto list dividers when dynamically creating a list in jquery mobile

白昼怎懂夜的黑 提交于 2019-12-25 02:04:11
问题 I've created a list of messages dynamically. I have a <ul> tag and I'm generating a list inside dynamically. However, I don't know how to add list dividers to this. Would there be a refresh method in js that I can call which would add dividers after I have my list? This is what I have: <ul id="messages" data-autodividers="true" data-role="listview" data-theme="c"> //a list of <li> are dynamically generated here </ul> This only appends on list divider to the very top, I need several of them

calling .trigger(“click”) that is in javascript code returned from an ajax call

风格不统一 提交于 2019-12-25 02:01:31
问题 What i would like to do is trigger a button's click event from within a view that gets returned from an ajax call. This process works fine in a pc browser such as chrome but not so in a mobile browser. (i am using both jquery and jquery mobile). (there is a lot more code involved in this but i have removed it for clarity) I have a button in my html page like so. <input type="button" id="bt1" value="" /> It has an onclick event listener on it defined somewhere else. I have an ajax call that