Chrome Web App Development Summary _php Example

Source: Internet
Author: User
Tags manual php and mysql php framework

Objective

This article mainly shares the problems and processes that you have encountered in developing web apps, and some of the pits that have been filled up. If you would like to "How to develop Web Apps" or "30 minutes to learn to develop Web apps", please go to the Official Development manual (documentation). (There are links below).

Background

It feels like everyone is arguing (talking) about two things, Web apps and native apps. HTML5 to participate in the activities of the watchmen, all parties are in response to the two between the pros and cons, differences, compatibility, popularization and so on. Of course, the controversial is to say that there is value.

Chrome Web App

It wasn't the first time that Chrome had been on the homepage of the major news media for more than a few years. Chrome itself has a strong plug-in market, and recently (and not recently) launched a Chrome Web App. There has been a development of chrome expansion, has been confused by Chrome's own API, but in the dizzy and also deeply feel the great potential of web apps.

Making Web Apps

Just trying to transplant a simple "web project" into a chrome Web App, which says porting, is basically rebuilding, oh no, new ... Now the Web project is a PHP Web site that uses PHP and MySQL to do back-end, very common to use the slim as a PHP framework.
So how to build a new chrome Web app. Obviously, it's not possible to use PHP. Previously used Google's own angularjs to do development, so it is familiar, and the official development manual also makes ANGULARJS the preferred recommended development framework. And thanks to the SLIM framework (PHP), it's all restful.
This is probably the idea:
Everything with angularjs and restful, so that the local application only static page, and then through the BA BA BA send request data return on it ....

Feel

Using Google's own angularjs, almost the majority of browser features can be used, very good compatibility, and desktop software almost no difference, the most important thing is that I have not learned the software development (tried Delphi) wish ... Web apps are too powerful!

Resources (ladder required)

Chrome Web App Chinese Development Handbook
Google Plus Chinese Community
Official English Forum

Problem

Several problems were encountered during the development process:

Permissions can not only invoke functions, if the use of external resources to add;
You can be assured of bold use of similar-webkit, or even V8 API;
-webkit-app-region:drag can control the application drag;
If you insist on frame: ' None ', don't forget to add the Close button;

Look forward to communicating with you

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.