Developing mobile applications using JavaScript

Source: Internet
Author: User
Tags documentation interface version mootools

JavaScript is not just for Web pages and Web site programs. You can also create real-time applications, server-side solutions, desktops, and mobile apps. There are two types of mobile applications: Web applications in browsers and local applications. Local applications are usually faster and more powerful because they have access to devices such as file systems, sensors, cameras, and so on. Local applications are usually written in the language specified by the phone, such as Objective-c, Java. So independent developers usually use html+css+javascript solutions. Fortunately, thanks to the latest technology, we can easily convert Web applications to real local applications.

Titanium Appcelerator (http://www.appcelerator.com/)

Video (http://vimeo.com/moogaloop.swf?clip_id=8730218&server=vimeo.com&show_title=0&show_byline=0& Show_portrait=0&color=&fullscreen=1)

This scary tool allows you to use the Web technology you know to create powerful mobile apps for your iphone, IPad, Android (which will later support BlackBerry) with local controls. These technologies include HTML5, CSS3, Javascript, PHP, Ruby, and Python. In addition, it has recently updated its documentation.

You can use any of the frameworks you want (such as MooTools, JQuery, Prototype) and take advantage of the latest features of CSS3 and JavaScript. This is because the Titanium program actually runs in the smart embedded WebKit (that is, Safari) window. Starting with the Titanium 1.0 version, only the JavaScript emulator is available except WebKit webview. As Mitchell wrote:

In the titanium 0.8 version, WebKit's webview is used as a core, surrounded by GPs, user interfaces, cameras, and data mapped to the operating system. By the Titanium 1.0 version, developers now have the option to build javascipt bridges on iphone objective-c or Android Java by directly binding to the operating system API.

If you learn the Titanium Mobile API, you'll see how easy it is to use geo-positioning or mouse gestures. You can even connect your application to Facebook simply by using a few lines of code.

PhoneGap (http://www.appcelerator.com/)

Like titanium, phone gap allows you to use HTML and JavaScript to build apps for multiple mobile platforms, including the iphone, Google Android, Symbian, Palm, and BlackBerry. Here you can see what features are currently supported by the platforms mentioned above.

Frankly speaking, I've only used titanium, but PhoneGap seems to be a good choice too.

In addition, there are quickconnectfamily and Niblekit. The first one is quite strong, the second lacks documentation and does not support Cross-platform (only the iphone and ipod). I also recommend Iwebkit, but its homepage has recently been hacked (I'm not joking ...).

You may be interested in frameworks that make it easier for you to work. For example, if you want your app to have a special iphone interface and look, try this:

JQTouch (http://www.jqtouch.com/)

It allows you to easily create iphone apps that run on the WebKit browser (you can also use titanium or phonegap to create local apps).

In addition to Jqtouch, there is a choice: IUI. You can find it in Google code.

If you choose a lightweight and non-jquery framework, try WebApp, which is designed to simulate the real user graphical interface of the iphone and ipod Touch.

Xui (http://xuijs.com/)

We heard what you said. What is another JavaScript frame?! When using PHONEGAP development, using modern JavaScript (such as prototype, MooTools, YUI, Ext, or even jquery) can lead to slower load times. One of the biggest reasons is that these libraries are too large, mainly because they contain a lot of Cross-browser compatibility code. So far, there are few browser implementations and different requirements on the mobile platform, so please consider xui.

I've said enough ...

Cappuccino (http://cappuccino.org/)

This framework is designed for non-objective-c developers, Capucchino introduces Objective-j.

OBJECTIVE-J is a new programming language based on Objective-c. It is also a superset of JavaScript, which means that any valid JavaScript code is also available OBJECTIVE-J code. Anyone familiar with JavaScript and object-oriented principles will have no difficulty learning objective-j. Familiarity with OBJECTIVE-C will help, but not necessarily.

Use this framework to create mobile apps that are as good as desktop apps (thanks to titanium). Take a look at some examples: 280 slides,mockingbird or github problems.

iprocessing (http://luckybite.com/iprocessing/)

Using the above framework you may not be able to create 3D apps and games. So with the iprocessing. It is an open programming framework that helps people develop local iphone apps using the processing language. It is a combination of the Processing.js library and the JavaScript application framework on the iphone.

Video (http://www.youtube.com/v/tenlijsmeb8&rel=0&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_us& Feature=player_embedded&fs=1)

Original link: http://article.yeeyan.org/view/153993/174186

"Edit Recommendation"

    1. Implementing tabular data Management with JavaScript
    2. Hacker survey: What is the most popular JavaScript library?
    3. JavaScript version of several common sorting algorithms to share
    4. JavaScript objects and the built-in objects of the inheritance tutorial
    5. JavaScript memory recovery mechanism in depth interpretation
"Responsible editor: Chen Yu new TEL: (010) 68476606"


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.