…Just a couple more things to cover before we wrap up.…And one of the things I want to show you is how you can configure some of jQuery…Mobile's defaults because in addition to providing some user interface…and additional framework capabilities to your apps,…jQuery Mobile also exposes an API on…itself that you can use to affect…how the library operates and performs its functions.…Now, to configure jQuery Mobile's defaults,…you need to trap the mobileinit event.…
The mobileinit event is sent when the framework loads, and it fires right…away, so you have to define this event handler before you include the library.…Essentially what you do is you have your script where you…include jQuery and then you have your script down here where…you include jQuery Mobile and in between those two is where…you define a script that's going to respond to the mobileinit event.…So this defines the event handler, and when jQuery…Mobile loads, it's going to fire this event right away.…
So, inside this event handler is…where you configure jQuery Mobile's default settings.…
Author
Released
6/3/2014- Building your first jQuery Mobile app
- Understanding the page architecture
- Using page transitions and dialog widgets
- Working with forms and controls
- Creating toolbars
- Working with list views
- Using jQuery Mobile's content formatting features
- Adding events to detect and respond to changes
- Configuring and customizing jQuery Mobile
Skill Level Beginner
Duration
Views
Related Courses
-
Introduction
-
Welcome58s
-
What you should already know1m 21s
-
Using the exercise files4m 42s
-
-
1. Getting Started with jQuery Mobile
-
Intro to jQuery Mobile7m 49s
-
2. Building jQuery Mobile Pages
-
Using page transitions3m 14s
-
-
3. Using jQuery Mobile Widgets
-
jQuery Mobile form basics5m 41s
-
Working with buttons7m 58s
-
Using text inputs5m 14s
-
Using select lists5m 37s
-
-
4. Working with Toolbars
-
Creating toolbars4m 57s
-
Fixed-position toolbars4m 19s
-
External toolbars4m 16s
-
Navigation bars4m 2s
-
-
5. Working with List Views
-
Overview of list views5m 17s
-
Basic list views6m 33s
-
Advanced list views7m 43s
-
-
6. Using the Content Formatting Tools
-
Using layout grids5m 40s
-
Using themes11m 41s
-
-
7. jQuery Mobile Events
-
Touch events3m 17s
-
Orientation events1m 17s
-
Scroll events1m 54s
-
-
8. The jQuery Mobile API
-
Conclusion
-
Goodbye1m 12s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Configuring jQuery Mobile defaults