jquery-mobile

Chrome mobile ignoring overflow

不羁的心 提交于 2019-12-24 13:46:12
问题 I'm playing around with creating a webapp for android. I've been using phonegap with JQM, but I've reached a problem. I'm implementing a slide-in menu, and for that I've found a simple example on the internet. http://www.aldomatic.com/jqm/fb-menu-style/ This simple menu slides in from the left, and that part works great, but when i try to slide it in i get a problem. The whole page scrolls, and this is despite me having #mobileViewport { overflow: hidden; } (The body tag has the id of

Jquery Mobile Panel hides flexslider when opened

混江龙づ霸主 提交于 2019-12-24 13:43:14
问题 I am trying to use jquery mobile panels and it hides the slider when I open the panel, it removes/hides the slider. Adding rel="external" to the button for panel doesn't do anything as it is not a link to physical page. Here is an example given in fiddle: http://jsfiddle.net/dhavaljani/zZKhT/ Html for panel <div data-role="panel" id="rightpanel2" data-position="right" data-display="push" data-theme="d" data-content-theme="d">` <ul data-role="listview" data-theme="d" data-icon="false"> <li><a

Unexpected pagecontainer change behavior

China☆狼群 提交于 2019-12-24 13:14:32
问题 So I have this a page, that I want to load using next function: //Function to Redirect to add page function redirectAdd() { $("body").pagecontainer("change", "#add", { transition : "fade" }); } And I have page that I want to be redirected. But at the moment I redirect to it, I get redirected back to the main page. $(document).on("pagecreate", "#home", function() { //Redirections $('#addRun').on("tap", redirectAdd); $('#home').on("tap", redirectHome); $('#editRun').on("tap", redirectEdit); /

How is jQuery mobile interfering with my mouse/touch listening on SVG documents?

你离开我真会死。 提交于 2019-12-24 12:51:51
问题 I have an app that uses my own approach to SVG buttons, which required some hackery to get to work but I've liked how it works. However when I add jQuery Mobile to the project, my buttons are no longer responding to clicks or touch. My buttons are not <button> elements, but <object> tags that link an external SVG file. I have code to hook these up like so: function buttonifySVG(id, clickHandler) { var obj = document.getElementById(id); var svgDoc = obj.getSVGDocument(); function

jQuery Mobile - pageinit handler not called on subsequent changePage calls

好久不见. 提交于 2019-12-24 12:40:25
问题 I have two jquery mobile "pages" (divs designated as pages) on the html page. I want to call methods every time I go to a page. I hook up methods to fire on 'pageinit' event. However, it only gets called once and doesn't get called on subsequent changePage calls. Here is a jsFiddle to demonstrate. ( time stamp should change on pageinit ) Here is my code in entirety https://gist.github.com/dev-e-loper/5356942 My pages: <div id="page1" data-role="page"> <h1>One</h1> <a id="page1_link" data-role

jQuery Mobile Thumbnail list in a Select Drop Down

妖精的绣舞 提交于 2019-12-24 12:28:18
问题 I am wondering if anyone has implemented thumbnails within a <select> option list? To visualise: http://jsfiddle.net/sidouglas/Ba4gG/2/ ( with both the select and thumbnail list combined ) I know that technically you can't have images within an option tag, and jQuery mobile strips them when you try this. Perhaps a data attribute on an <option data-image="path-to-image">label</option> etc. Any takers? 回答1: Using your idea of a data-image attribute: <div class="ui-field-contain"> <label for=

How to display the particular tag in a file like description in the listview dynamically using jquery?

折月煮酒 提交于 2019-12-24 12:08:11
问题 I'm trying to get the some data from file like some.txt. I want to display some data in that file like description under the each list in the listview. $(xml).find('section[order="' + order + '"] content').each(function () { var content = $(this).text(); var seq = order + '' + $(this).attr('order'); var file = $(this).attr('file'); $("#content").append('<li><a href="#" data-sequence="s' + seq + '" file="' + file + '">' + content + ' </a> </li> '); }); $("#content").listview('refresh'); }); In

JQM removes my page

此生再无相见时 提交于 2019-12-24 12:02:20
问题 Having a very small example demonstrating my issue with jquerymobile: JSFiddle - http://jsfiddle.net/forrest_gump/Q73Mk/3/ As you can see i call jqm changePage() and it appears for a second but the it is suddenly removed by #pageIndex I spent a lot of time trying to find out why!?! Am I stupid or is it a jqm bug? 回答1: Note that pageinit fires when page is ready to be shown but still hidden, as there is sequence of events that still not occurred on that page. Changing page doesn't stop those

jquery mobile: navbar not keeping active state

你离开我真会死。 提交于 2019-12-24 11:36:47
问题 I have this navbar footer: <div data-role="footer" data-position="fixed" data-theme="a" > <div data-role="navbar" data-iconpos="bottom"> <ul> <li><a href="#page1" id="button_1" data-icon="user" class="my_buttons ui-btn-active">Page1</a></li> <li><a href="#page2" id="button_2" data-icon="lock" class="my_buttons">Page2</a></li> <li><a href="#page3" id="button_3" data-icon="camera" class="my_buttons">Page3</a></li> <li><a href="#page4" id="button_4" data-icon="comment" class="my_buttons">Page4<

jquerymobile pageShow , PrevPage

被刻印的时光 ゝ 提交于 2019-12-24 11:06:49
问题 I have 3 JqueryMobile pages: Page1,Page2 and Page3 every one can navigate to Page3, I'm using this code: $('#Page3').on('pageshow', function (object) { // Change enabled status $('#MenuItemEnPedido').find('a').each(function () { $(this).addClass('ui-disabled'); }); $('#PagDocumentoOpcionDetalle').removeClass('ui-disabled'); }); To change some options, but i need to know the id of object page returned by pageshow event. Not target id, just prevPage Id. 回答1: This is an example how to retrieve