开发智能手机 Web 应用程序时从哪里开始

发布于 2024-09-26 10:22:40 字数 140 浏览 2 评论 0原文

我想使用 jQTouch 为智能手机开发 Web 应用程序。对于服务器端脚本,我更喜欢 PHP 和 MySQL 数据库服务器来实现后端持久性。

有没有什么书可以帮助学习如何使用 PHP、MySQL 和 jQTouch 开发智能手机 Web 应用程序?

I want to develop web applications for smartphones using jQTouch. For server side scripting, I prefer PHP and MySQL database server for back end persistence.

Is there any book that helps in learning how to develop a web application for smartphones using PHP, MySQL and jQTouch?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月亮是我掰弯的 2024-10-03 10:22:40

要开发移动 Web 应用程序(或智能手机的 Web 应用程序)的客户端,请查看 "Building使用 HTML、CSS 和 JavaScript 的 iPhone 应用”,作者:Jonathan Stark。他目前是项目维护者。

jQtouch 的另一个替代方案是 Sencha Touch。 Sencha Touch 可以让您开发比 jQtouch 更复杂的 Web 应用程序。这是一个新库,因此没有关于 Sencha Touch 的书,但是您可以从示例中学到很多东西,而无需书本。此外他们还有论坛。

这里需要考虑的事情:

  • David Kaneda 是两者背后的思想者
    项目。我猜他从 jQtouch 学到的东西被应用到了 Sencha 中。
  • jQtouch 是一个 jQuery 插件
    CSS 和主题
  • Sencha Touch 基于 ext js
    javascript libary
  • jQtouch 是 MIT 许可证,并且是
    Sencha Labs
  • Sencha Touch 拥有商业许可证
    GNU GPL 许可证 v3
  • 我已经使用 jQtouch 10 个月了,发现它有其局限性。如果您的网络应用程序具有复杂的功能,请考虑尝试 Sencha Touch。如果您只想使网站适合移动设备,请使用 jQtouch。
  • 从demo测试来看,Sencha比jQtouch能够更好的跨平台支持。特别是如果您想定位使用 iOS 设备(iPad、iPhone、iPod Touch)的用户。

所有这些都与 Web 应用程序的客户端有关。关于 Web 应用程序的服务器端,您可以采取两种方法。

  • 首先你可以划分你的网络应用程序
    2:服务器端(a
    webservice 或 API)以及使用 jQtouch 或 Sencha 的客户端构建。它们之间的通信可以使用 JSON 或 XML 来完成。优点是您的服务器端将独立于客户端库的选择。因此,将来如果您想添加新的客户端类型或更改库,服务器部分不会受到影响。然而,这会增加您的实施的复杂性,即客户端身份验证、会话管理、安全性。

第二种方法是“传统”方法,您的服务器端语言生成(基于请求)Web 应用程序的 HTML。在这种情况下,你只需要使用 CSS 和一些 javascript 来适应不同的屏幕。或者直接使用jQtouch。这可能不会那么麻烦,但你会失去一些灵活性和可扩展性。

如果您需要一本有关 php 和 mysql 的书,请尝试 “PHP 和 MySQL Web 开发”

For developing the client side of your mobile web app (or web applications for smartphones) check out "Building iPhone Apps with HTML, CSS, and JavaScript" by Jonathan Stark. He is currently project maintainer.

Another alternative to jQtouch is Sencha Touch. Sencha Touch lets you develop more complex web applications than with jQtouch. This is a new library, so there is no book on Sencha Touch, however you could learn a lot from the examples, where a book is not necessary. In addition they have the forums.

Things to consider here:

  • David Kaneda is the mind behind both
    projects. I guess what he learned from jQtouch he applied it in Sencha.
  • jQtouch is a plugin for jQuery with
    CSS and themes
  • Sencha Touch is based on ext js an
    javascript libary
  • jQtouch is MIT license and is part of
    Sencha Labs
  • Sencha Touch has a commercial license
    and a GNU GPL license v3.
  • I've been using jQtouch for the path 10 months and found that it has it limits. If your web app has complex functionality, then consider trying out Sencha Touch. In case you just want to make a web site mobile friendly then use jQtouch.
  • From testing the demos, Sencha can better cross platform support than jQtouch. Especially if you want to target users with iOS devices (iPad, iPhone, iPod Touch).

All this is regarding the client side of your web application. Regarding the server side of your web application, you could take two approaches.

  • First you could divide your web app
    in 2: server side ( a
    webservice or API) and the client side build using jQtouch or Sencha. The communication between them can be done using JSON or XML. The advantage is that your server side will be independent of the choice of client side library. So, in the future if you wish to add a new client type or change libary, the server part is not affected. However, this adds more complexity to your implementation i.e. client authentication, session management, security.

Second way of doing it is the "traditional" way, where your servcer side language generates (based on the requests) the HTML of your web application. In this case you just need to use CSS and some javascript to adapt to the different screens. Or just use jQtouch. This could be less of a hassle but you loose some flexibility and scalability.

If you need a book for php and mysql try "PHP and MySQL Web Development"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文