Chapter 5. Adding Interactivity with JavaScript and AJAX

Using mobile JavaScript and Asynchronous JavaScript and XML (AJAX) can increase the interactivity of a dynamic Mobile Web site, mitigate its impact on a mobile network, and improve usability on smartphones and other devices with advanced mobile browsers. This chapter introduces client-side scripting using JavaScript and AJAX on supported mobile devices, providing development tips, code samples, and suggestions for avoiding common pitfalls. Of course, scripting functionality should be conditionally included in a Mobile Web page, allowing the page to maintain compatibility with older mobile browsers that do not support these advanced features.

With mobile JavaScript, the devil is truly in the ...

Get Beginning Smartphone Web Development: Building JavaScript, CSS, HTML and Ajax-based Applications for iPhone, Android, Palm Pre, BlackBerry, Windows Mobile, and Nokia S60 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.