Collection of 50 jquery mobile development skills in the Classic collection

Source: Internet
Author: User

1,Backbone mobile instance

This is a backbone mobile app running in safari.Program. To start experiencing mobile development, a good starting point is to focus on the construction method of this application. Check the application in your browser.

Related links:Http://bennolan.com/2010/11/24/backbone-jquery-demo.html

2,Use media queries to lock Devices

You may ask how to use CSS to lock the device (based on the screen size ). For example, you want to design two la s for the iPad and one layout for the smartphone. To do this, the best way is to use media queries. As long as some simple media queries are in place, you can quickly lock the CSS screen size.

Related links:Http://css-tricks.com/6731-css-media-queries/

3,Quick Tips: How to Use @ font-face

Several font replacement methods can be used, such as cufon, sifr, FLIR, @ font-face, and Google fonts APIs. When using jquery mobile to build Web applications, I found that the @ font-face method is the easiest method to use, and its performance is quite satisfactory.

Related links:Http://net.tutsplus.com/tutorials/design-tutorials/quick-tip-how-to-work-with-font-face/

4,Where to add additional jquery calls

If you want to modify the content on the page before the mobile plug-in is triggered, the recommended solution is to place the traditional jquery call before the reference of the mobile plug-in. In this way, your jquery command has the opportunity to run before the library is loaded.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

5,Complete basic page

You may find that you have to create a complete tag for the basic page. Because of this, it is all necessary to create a basic page.Code.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

6,Create a column structure by yourself

If you want to design the best single page structure for multiple devices, you will find that you often use the aforementioned media Query Techniques and the columns in any order method. Fortunately, Web developers have long been figuring out how to move columns and use this method in combination with media queries.

Related links:Http://www.positioniseverything.net/articles/onetruelayout/anyorder

7,Combined with Google Analytics and jquery mobile

You can learn how to use Google Analytics and jquery mobile in combination.

Related links:Http://www.jongales.com/blog/2011/01/10/google-analytics-and-jquery-mobile/

8,Submit jquery mobile forms through Ajax and PHP

You can learn how to submit jquery mobile forms through Ajax and PHP.

Related links:Http://www.giantflyingsaucer.com/blog? P = 2574

9,How to Use jquery mobile to create a mobile WordPress topic

This tool makes it easy to create mobile websites and web applications. In this tutorial, I will introduce how to create WordPress Themes optimized for mobile devices.

Related links:Http://www.catswhocode.com/blog/how-to-create-a-mobile-wordpress-theme-with-jquery-mobile

10,Create a website using jquery mobile. Part 1

In this tutorial, I will introduce how to use jquery mobile to create a website. In the first part of this tutorial, I will explain the characteristics of the website and implement the home page of the website.

Related links:Http://miamicoder.com/2011/creating-a-website-using-jquery-mobile-part1/

11,Use jquery mobile to create a website. Part 2

As the next part of how to use jquery mobile to create a website series, we will introduce how to build the speaker page.

Related links:Http://miamicoder.com/2011/creating-a-website-using-jquery-mobile-part-2/

12,Disable button action

The following describes how to disable the button action (such as disabling the page) and add the following JavaScript code.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

13,Create pop-up dialog box

A convenient feature of the jquery Mobile Library is the built-in pop-up content or dialog box feature. It is easy to create this convenient feature. Note: first, the target page must be a complete jquery mobile page, as described in the first tip. Second, this only applies to external pages; it must be a complete, independent page to work normally.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

14,About jquery mobile

You can learn how to use the jquery mobile framework. This basic introduction describes how to create pages, links, navigation, and buttons.

Related links:Http://www.youtube.com/watch? V = vy20q6on4qa

15,Set the background color of the page

This may sound simple, but it took me several minutes to figure out how to add background colors to the page without being overwritten by jquery mobile CSS. You usually set the background color for the subject element, but if you are using the jquery mobile framework, you need to set it to the UI-page class.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

16,Jquery Mobile: What can I do for you?

You can figure out how the new jquery mobile framework helps you easily build a web application that looks great and runs across devices. It includes many code examples and demos. You can learn how to create a simple jquery mobile application.

Related links:Http://www.elated.com/articles/jquery-mobile-what-can-it-do-for-you/

17,Disable pop-up messages

I think loading pop-up messages is a little annoying, because this operation is triggered whenever you load different pages. To disable this operation, you only need to add the following line of code to your JS file.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

18,How to Use jquery mobile to create an RSS reader

Now, we will go into the use of PHP and jquery mobile to create a simple Tuts + RSS reader program. After creation, you just need to click the button and use the web application building skills to add this simple project to your iPhone or Android phone.

Related links:Http://net.tutsplus.com/tutorials/javascript-ajax/how-to-build-an-rss-reader-with-jquery-mobile-2/

19,"Cancel" and "save" button combination

This Code meets two basic requirements. The first requirement is to make the two buttons adjacent to each other. Fortunately, the jquery Mobile Library has a built-in column structure, which can be easily used as long as fieldset labels and appropriate classes are used, as shown below. The second requirement is that the two buttons have different themes. This code is directly from the instruction document. I keep it at hand for frequent use.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

20,Use jquery to lock the Platform

Although we really want to execute some CSS statements for some devices, we also want to run jquery only on specific devices. Some code from snipplr is changed below, so that I can easily isolate part of jquery to run based on the user's device.

Related links:Http://snipplr.com/view/31607/iphone-ipad-ipod-detect/



21,Create a custom topic

The jquery mobile framework includes five themes: Theme A, theme B, Theme C, Theme D, and Theme E. However, you can easily create a new topic for your web application.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

22,Prevent key projects from being truncated

A feature of the Library (or its disadvantage, depending on your needs) is that it intelligently truncates long projects to adapt to user interface elements.

In either case, this may be annoying. First, in the list project, I prefer to see all the text. The second is in the footer text.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

23,Two iPhone development skills. jquery helps

The first and simplest technique is to use the viewport. (You may need to register with apple to view the link. You need to log on to access simple documents and get two points for Apple !) The viewport is a simple meta tag. This is an example:

Related links:Http://www.coldfusionjedi.com/index.cfm/2008/10/9/Two-iPhone-development-tips-and-jQuery-to-the-rescue

24,Remove arrow from list item

By default, the jquery mobile framework adds an arrow next to each list item. To disable this function, you only need to set the data-Icon attribute to "false" for the list item you want to remove the arrow ".

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

25,Jquery Mobile Form Verification

You can use this tutorial to learn about jquery mobile form verification.

Related links:Http://www.elijahmanor.com/2011/02/jquery-mobile-form-validation.html

26,Use the HTML5 Canvas Element of jquery mobile to listen for touch events on iPad and Android browsers

Jquery mobile supports many touch events, greatly simplifying the work of developers. In fact, jquery mobile ensures that your web applications can run on both mobile browsers and desktop/laptop browsers. Unfortunately, you cannot predict that the Javascript click event will run on a mobile device as it would on a desktop/laptop browser.

Related links:Http://www.giantflyingsaucer.com/blog? P = 2658

27,Jquery mobile touch event: Press

You can learn how to detect "Quick press" Touch events on a smartphone device.

Related links:Http://www.youtube.com/watch? V =-ywccfbnqhm & feature = related

28,Use jquery mobile with appmobi

This tutorial video shows you how to use a new mobile version of the popular jquery JavaScript library with appmobi. Jquery mobile allows you to easily create applications with all the appearances of the native application, with built-in buttons, conversion effects, and forms.

Related links:Http://www.youtube.com/watch? V = otbnufylxnc & feature = related

29,Disable Ajax navigation for all links at the same time

Although Ajax navigation is excellent, sometimes you want to disable it completely. This jquery code tells the mobile library not to use the Ajax navigation function.

Related links:Http://www.webdesignerdepot.com/2011/05/10-handy-jquery-mobile-tips-and-snippets-to-get-you-started/

30,Displays random background images when loading pages

Jquery mobile has many page initialization events that you can use to trigger some methods when loading pages. The following CSS + javascript can be used to display random background images whenever a page is loaded.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

 

31,Create buttons with only images and no text

Sometimes, you may not want the button to have any text, but still use other features with the button element. This is usually the case with the Home button or information button. To hide any text related to the button, set the data-iconpos attribute to "notext ". For example:

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

32,Jquery mobile toolbar navigation menu

You can learn how to use the toolbar and navigation bar of jquery mobile to create a fixed position menu and more!

Related links:Http://www.youtube.com/watch? V = jtnp0ckizio & feature = related

33,Search list in jquery mobile

We can easily create a list that includes search elements. Users can enter text and obtain all the elements that are suitable for text filtering from the list.

Related links:Http://www.youtube.com/watch? V = 09 sgnvhgize & feature = related

34,Jquery Mobile: the official jquery mobile development framework

This mobile development framework has many outstanding features, allows mobile developers to add professional jquery effects to iOS, Android, BlackBerry, bada, Windows Mobile, Palm OS, Symbian, meego applications, and Web applications. You should see this bad guy in mobile safari.

Related links:Http://iphonemonsta.com/jquery-iphone-mobile-development-framework-mobile-touch-optimized

35,Open the link without Ajax page conversion Effect

If you do not want to use the Ajax page conversion effect, open the Link (that is, reload the entire page in the traditional way) and set the rel attribute to "external.

Related links:Http://eisabainyo.net/weblog/2011/01/31/top-10-jquery-mobile-code-snippets-that-you-need-to-know/

36,Jquery mobile multi-page internal link

This short video clip explains how internal links work in jquery mobile.

Related links:Http://www.youtube.com/watch? V = oqlpp70xnvy & feature = related

37,Dialog conversion in jquery mobile

You can learn how to set the conversion when displaying a dialog in jquery mobile.

Related links:Http://www.youtube.com/watch? V = zh0yxy8ywys & feature = related

38,Add driving directions to the jquery mobile website

You can learn how to add driving directions to the jquery mobile website.

Related links:Http://www.coldfusionjedi.com/index.cfm/2011/3/9/Adding-driving-directions-to-a-jQuery-Mobile-web-site

39,Jquery mobile framework-form tutorial

In this tutorial, we will focus on some basic elements of jquery Mobile: Page Structure, forms, and Ajax form submission. This tutorial is based on jquery mobile Framework Version 1.0 test version 2.

Related links:Http://mobile.tutsplus.com/tutorials/mobile-web-apps/jquery-mobile-forms/

40,Simple List View in jquery mobile

This video clip shows how to create a simple list view in jquery mobile.

Related links:Http://www.youtube.com/watch? V = jmg8gdekdja & feature = related


41,Split list in jquery mobile

We can add a secondary link for each list item. It is displayed along with the icon on the right of the project.

Related links:Http://www.youtube.com/watch? V = yazhs_8vayo & feature = related

42,Form Controls in jquery mobile

This short video clip shows the controls available when using the jquery mobile library.

Related links:Http://www.youtube.com/watch? V = o2fvx4gtr4a & feature = related

43,Fixed title and footer positions in jquery mobile

This short video clip shows the significance of setting a fixed position for the title and footer in jquery mobile.

Related links:Http://www.youtube.com/watch? V = edwweskzzku & feature = related

44,Jquery mobile inline button

We can add the data-inline = "true" attribute for the button to obtain the button whose width is not the whole width of the screen. This video clip shows how to do this.

Related links:Http://www.youtube.com/watch? V = bp0i4nqve_4 & feature = related

45,Hello world in jquery mobile

This short video clip explains how to develop a simple webpage using the jquery mobile library.

Related links:Http://www.youtube.com/watch? V = 8yr4xuxwtkc & feature = related

46,Use jquery mobile to build mobile websites with offline Functions

You can learn how to use jquery mobile to build a mobile website with offline functions.

Related links:Http://www.coldfusionjedi.com/index.cfm/2011/3/12/Building-an-offline-capable-mobile-web-site-with-jQuery-Mobile

47,Jquery mobile and JSON

This tutorial introduces the jquery mobile (jqm) framework that can be used to write mobile Web applications, targeting several leading browsers in the mobile industry. Jqm can be used to provide intuitive and consistent user experience for Web-based applications running on numerous mobile devices, for example, iPhone, iPad, Android, WebOS, BlackBerry version 6 (torch and playbook) and other mobile devices. This tutorial first summarizes the jqm project and the relationship between jqm and html5. This tutorial describes one of the multiple methods used to build a jqm application, some methods for jqm to improve basic web user interface elements, and finally the basic requirements for sales team automation.

Related links:Http://www.ibm.com/developerworks/xml/tutorials/x-jquerymobilejsontut/index.html

48,Create and use custom icons in jquery mobile

This article describes how to create and implement custom icons. In addition, I will introduce how to add high-resolution icon support for iPhone 4 retina screens and updated high-resolution devices.

Related links:Http://www.andymatthews.net/read/2011/02/13/Creating-and-using-custom-icons-in-jQuery-Mobile

49,Getting started with jquery mobile & rails 3

This application allows you to create, read, update, and delete blog posts through mobile devices.

Related links:Http://fuelyourcoding.com/getting-started-with-jquery-mobile-rails-3/

50,Use jquery mobile to build a native Android news reading Application

You can learn how to use jquery mobile to build a native Android news reading application.

Related links:Http://mobile.tutsplus.com/tutorials/mobile-web-apps/jquery_android/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.