Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

jQuery Mobile: Am I doing it wrong?!

Featured Replies

I have a design, and as with practically all of my work right now it uses a responsive approach (read: media queries) to make it usable on all screen sizes.

 

At mobile-sized resolutions though, whilst I've succeeded in managing the layout and content to work well, there are UI issues. I've never really used jQuery Mobile before, but after having a brief play with it, it seems like it would solve a fair few of the usability issues I'm having.

 

The problem is, as soon as I import the source file and accompanying CSS file, the whole site take on a 'mobile' look and feel no matter what the resolution. That's no big surprise I guess, as presumably the idea is that the library is used to develop a stand-alone mobile site.

 

So, on to the question: Is it possible to use jQuery Mobile on a non-standalone mobile site. I just want one website/design that adapts to the user's resolution. Ideally, jQuery Mobile would just load below a certain resolution. Is that possible?

 

Lastly, on a semi-related point... When I actually import jQuery Mobile, I get the following console error and an empty DOM except for skeleton HTML/HEAD/BODY elements and a single e-mail address... Just to save the potentially hours of debugging, can anyone give any pointers as to what might cause it?

 

Uncaught TypeError: Cannot read property 'parentNode' of undefined

 

Many thanks,

 

Tom

Edited by tomsel

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.