in reply to Perl, Android web app, AJAX, JSON

I've never done it but my approach would be to build the App using HTML5

See this how-to-create-an-android-app-using-html-5 discussion on stack overflow.

Concerning the API to your CMS, all your ideas sound good.

It's hard to tell without deep knowledge of the extendibility of your CMS.

HTH! :)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Perl, Android web app, AJAX, JSON
by monx663 (Sexton) on Nov 21, 2017 at 11:50 UTC
    Hi Rolf and thanks for your input. The mobile app is being built in HTML5 but the various drop-down boxes need to be populated with data from the CMS.

    Regarding the extendibility of the CMS it can be thought of as "infinite". :p

    The CMS was written by myself and weights more than 1Mb of object oriented Perl code, with certain modules already exposing web methods that accept POSTs/GETs, provided that the POST/GET request is accompanied by the authentication session cookie.

    My question was, shall I write the API using AJAX or only stick with JSON for the data interchange?

    Cheers,

    Konstantinos

      > My question was, shall I write the API using AJAX or only stick with JSON for the data interchange?

      This is not an XOR question, a XMLHttpRequest can perfectly interact with REST and process JSON and/or XML.

      What do you mean with AJAX ? ? ?

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery

        As I understand it, my CMS could expose an AJAX layer to the mobile app, which would make RP calls to AJAX methods in the CMS, possibly using jQuery.