AJAX is now
possible even on mobile devices, and Luigi is interested in exploring what can be
done for Pizza On The Run.
In this chapter, we will learn how to use AJAX on mobile devices. We will
specifically look at:
Getting pizza recipes via AJAX
Enabling AJAX in forms
Understanding iPhone application development
More of building rich mobile apps
Mobile devices have limited CPU power, memory, and network speed. These restrict
the usage of scripting in the browser. Most of the time, it's not feasible to allow
scripting. Loops in JavaScript and XML DOM (Document Object Model) processing
can also drain the batteries as they involve a lot of CPU cycles. A mobile device can
be on the move, so the network connection may drop and reconnect and is not
very reliable.
But with better phones, it is now possible to run JavaScript-based AJAX applications
on mobile devices. On the extreme side, AJAX applications are the only way to build
and run custom applications on a device like the iPhone.
Let's now see how we can use these technologies!
??? ??? ??? ???
Mobile AJAX
[ 182 ]
Getting Pizza Recipes via AJAX
Luigi wants to build a social tool where visitors can participate.
Pages:
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245