Skip to content

Delphi DataSnap REST server and jQueryMobile web client tutorial available

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.

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

  1. Ersan YAKIT | January 31, 2012 at 5:27 pm | Permalink

    hello

    thanks for share…

    kind regards..

    Ersan YAKIT
    Diwio Creative Media
    http://www.diwio.com

  2. Francisco Dueñas | January 31, 2012 at 6:21 pm | Permalink

    Thanks for sharing, can this demo be executing in Delphi XE1 architect?

  3. Pawel | January 31, 2012 at 9:47 pm | Permalink

    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

Your email is never published nor shared. Required fields are marked *

Bad Behavior has blocked 2 access attempts in the last 7 days.

Close