I have just put together a little EDN article about using jQueryMobile JavaScript library in your Delphi XE2 "DataSnap REST Application" projects. The idea was to demonstrate how to call server-side functions implemented in native Delphi code from the JavaScript client embedded in a web page using very popular jQueryMobile framework for pages optimized for web browsers running in smartphones.
- The article is available here: http://edn.embarcadero.com/article/42016
- … and the source code here: http://cc.embarcadero.com/item/28727
Here are the screenshots from the resulting "Hello World" jQueryMobile-enabled web application:
This article is really a logical continuation to my DelphiLabs episode where I have demonstrated how to generate jQueryMobile code on-the-fly in Delphi, but I have not included the possibility to call DataSnap server methods. Now the demo is complete and I can safely dive into the exciting new world of FireMonkey, cross-platform development and going mobile:-)
Enjoy!


{ 3 } Comments
hello
thanks for share…
kind regards..
Ersan YAKIT
Diwio Creative Media
http://www.diwio.com
Thanks for sharing, can this demo be executing in Delphi XE1 architect?
Hi!
You can use this code with no problems in Delphi XE (1) version. The wizard in XE1 is slightly different but there are no fundamental changes in DataSnap architecture between XE and XE2. Now the IDE wizard is enhanced and you could use secure HTTPS protocol for communication.
Pawel
Post a Comment