jquery-mobile

jQuery Mobile and textarea rows

▼魔方 西西 提交于 2020-01-01 05:42:09
问题 So, I'ld like to display a textarea on just 1 row. But jQuery Mobile doesn't think so... Whatever value I set in the rows attribute, it always is 2 rows height... Would it have any solution ? 回答1: The jQuery Mobile CSS sets a specific height for textarea elements: textarea.ui-input-text { height : 50px; -webkit-transition : height 200ms linear; -moz-transition : height 200ms linear; -o-transition : height 200ms linear; transition : height 200ms linear; } You can create your own rule to

Is there a tap and double tap event in d3.js force directed graph

放肆的年华 提交于 2020-01-01 04:43:22
问题 I am working on a force directed graph using d3.js. I need to handle tap and double tap event on nodes for mobile devices. Mouseover and click functions need to replicated as tap and double tap in d3.js. I have managed to get a touch event working but have no clue on how to capture double tap event in a mobile device. 回答1: D3 has the touches event and using this you can get touch position coordinates from inside your event handler, but this doesn't give you any special handling for or help

How exactly does $.mobile.activePage property work?

扶醉桌前 提交于 2020-01-01 04:39:24
问题 I am trying something as follows, $(document).bind ('pageshow', function (e, data) { console.log ($('#page_spots')); console.log ($.mobile.activePage); if ($.mobile.activePage == $('#page_spots')) { console.log ('Bingo!'); } }); Being #page_spots a div with the attribute data-role set to page . In the example above, when the active page is #page_spots I want to log 'Bingo!' in the console. I am a complete newbie to jQM and I don't know if this should be the right way or not. Thank you in

Jquery mobile href link dont load new page

爷,独闯天下 提交于 2020-01-01 04:01:18
问题 i'm a web devoper from Italy...I have a problem with loading with href example: i have one.html with this code <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" /> <title>dkrMobile</title> <!--caricamento librerie--> <script src="js/jquery-1.9.1.min.js"></script> <script src="js/jquery

How to add two same adobe edge animation in single html page?

醉酒当歌 提交于 2020-01-01 03:39:08
问题 I am using jquery mobile where different pages contents will be in one html page. On page change(sliding page), other pages have same edge animates, because of all html contents will be located in single html page, only first edge animate will work, rest will not work. I have two stage id's <div id="Stage" class="spring_animation"></div> <div id="Stage2" class="spring_animation"></div> Below code used for one stage( <div id="Stage" ) edge animate to work... <!--Adobe Edge Runtime--> <script

jQuery Mobile lazy load list items

限于喜欢 提交于 2020-01-01 03:36:56
问题 How do you know that you are at the bottom of a list in jQuery Mobile, I need to lazy load in more results when the end of the list is reached? 回答1: There is a working example of using scrollstart and scrollstop events here, that should get you going in the right direction: http://jsfiddle.net/shanabus/LJTJt/ Documentation page here: http://jquerymobile.com/test/docs/api/events.html Hope this helps! UPDATE With help from this post, I was able to wire up a better example that does detection

How do I toggle the jQuery Mobile Accordion with a button click?

旧时模样 提交于 2020-01-01 03:31:17
问题 When creating a jQuery Mobile Accordion, how do I get a section of the accordion to open when a button is clicked? When the user clicks the search button, I want to load the results into a list in the second panel, collapse the first and expand the second. <div data-role="collapsible-set"> <div id="filterContainer" data-role="collapsible" data-collapsed="false"> <h3>Filters</h3> <p>controls to pick options</p> <a href="#" data-role="button" id="search">Search</a> </div> <div id=

Authentication in jQuery Mobile and PhoneGap

故事扮演 提交于 2020-01-01 03:23:12
问题 I have a web application built with jQuery Mobile and PHP (CodeIgniter framework). Now I'm trying to make a PhoneGap version of it as well, to make it distributable as a standalone app. However, the PHP web app. version uses Ion Auth, a CodeIgniter plugin for authentication. So when you go to a page that requires authentication, the app redirects you to the authentication controller login method. And after authentication it redirects you back to the home page (the jQuery Mobile page in this

JQueryMobile - Button

99封情书 提交于 2020-01-01 00:46:07
问题 How to disable the button in coding using jquery mobile? <div data-role="button" id="val">Value</div> [Note : I want to disable the button in the coding, not in the design time] 回答1: Live Example: http://jsfiddle.net/LHG4L/5/ HTML: <div data-role="page"> <div data-role="content"> <input type="button" id="theButton" name="theButton" value="The Button"> </div> </div> JS: $('#theButton').attr('disabled',true); UPDATE: Link button example: http://jsfiddle.net/gRLYQ/6/ JS var clicked = false; $('

How to connect to the server on mobile application?

不想你离开。 提交于 2019-12-31 22:28:10
问题 I am new to mobile applications. I am basically from a web development platform. I am just playing around mobile frameworks like App Framework, LungoJS, Jquery Mobile, kendo etc to gain some knowledge in this vertical. The app I am developing is still in UI level. All I need is to fetch data from the server and populate in my app. I need some ideas to establish server communication between the smart device and the server. My questions are What kind of server needed for mobile applications ? A