Skip to main content

Questions tagged [jquery-mobile]

jQuery Mobile is a touch-optimized web framework for smartphones and tablets. It provides a unified user interface system across all popular mobile device platforms, built on jQuery.

274 votes
5 answers
158k views

jQuery Mobile: document ready vs. page events

I am using jQuery Mobile, and I am having trouble understanding differences between classic document ready and jQuery Mobile page events. What is the real difference? Why should <!-- language: ...
user2001897's user avatar
  • 3,657
77 votes
2 answers
38k views

jQuery Mobile: Markup Enhancement of dynamically added content

I was wondering how can I enhance dynamically jQuery Mobile page? I have tried to use these methods: $('[data-role="page"]').trigger('create'); and $('[data-role="page"]').page();...
user2001897's user avatar
  • 3,657
356 votes
18 answers
1.2m views

How can I check if a checkbox is checked?

I am building a mobile web app with jQuery Mobile and I want to check if a checkbox is checked. Here is my code. <script type=text/javascript> function validate(){ if (remember.checked == ...
Steaphann's user avatar
  • 3,649
26 votes
3 answers
22k views

Why I have to put all the script to index.html in jquery mobile

I have used $.mobile.changepage to do the redirect in my phonegap+jquerymobile projects. However what makes me confused is that I need to put the script of all the pages to the same file index.html. ...
Jack He's user avatar
  • 1,703
15 votes
8 answers
48k views

set content height 100% jquery mobile

I am developing jQuery Mobile page in which my CSS is .ui-content { background: transparent url('./images/bg.jpg'); background-size : 100% 100%; min-height: 100%; color:#FFFFFF; text-...
Dhiraj Wakchaure's user avatar
140 votes
20 answers
238k views

Long Press in JavaScript?

Is it possible to implement "long press" in JavaScript (or jQuery)? How? (source: androinica.com) HTML <a href="" title="">Long press</a> JavaScript $("a").mouseup(function(){ // ...
Randy Mayer's user avatar
  • 8,745
122 votes
12 answers
37k views

How to fallback to local stylesheet (not script) if CDN fails

I am linking to the jQuery Mobile stylesheet on a CDN and would like to fall back to my local version of the stylesheet if the CDN fails. For scripts the solution is well known: <!-- Load jQuery ...
ssn's user avatar
  • 2,357
25 votes
2 answers
103k views

How can I control the back button event in jQuery Mobile?

I tried to control back button, but I can’t. In here; Take control of the hardware back button using jQuery Mobile event.keyCode == 27 // That’s for escape event.keyCode == 8 // That’s for ...
Serkan's user avatar
  • 651
5 votes
1 answer
2k views

Setting up the jQuery Mobile script

I am new to jQuery mobile. I perfectly know how to reference all my scripts and CSS file. But right now I am a little bit confused on how to embeded my own code. Take for example when coding normal ...
Jaido's user avatar
  • 188
108 votes
9 answers
68k views

Correct way of using JQuery-Mobile/Phonegap together?

What is the correct way (to this date) to use JQuery Mobile and Phonegap together? Both frameworks need to load before they can be used. How can I be sure that both are loaded before I can use them?
Juw's user avatar
  • 2,069
25 votes
2 answers
50k views

How to change page in jQuery mobile (1.4 beta)?

I am reading the docs that $.mobile.changePage has been deprecated. But it doesn't say in favor of what, or what can I use instead. Is there a new API documentation page for this? I used to use $....
Patrioticcow's user avatar
  • 26.8k
43 votes
4 answers
49k views

jQuery Mobile does not apply styles after dynamically adding content

I know this questions appear several places (Forcing jQuery Mobile to re-evaluate styles/theme on dynamically inserted content) but not with an answer that is working for me. I'm loading some content ...
Larsi's user avatar
  • 4,734
9 votes
2 answers
1k views

Screen orientation ios

I am working on a application for ios with phonegap and jqm. I want to lock the screen orientation to landscape on just one page. The other pages have to be locked on portrait. I have seen a plugin ...
Paul Oostenrijk's user avatar
48 votes
3 answers
94k views

Show virtual keyboard on mobile phones in javascript

I'm creating a mobile version of my site. There's a part of the site where a dialog pops up with a text input. Normally I would just use jQuery to bring focus to the text input, but that's not working....
Adam's user avatar
  • 3,093
27 votes
6 answers
7k views

fullcalendar multiple cell select on mobile device?

I have created a fullcalendar application for mobile device like Android and iPhone using Phonegap. I am using the Jquery Touch Punch Plugin along with the Jquery fullcalendar plugin. The 'select' ...
Mahavir Munot's user avatar

15 30 50 per page
1
2 3 4 5
148