in reply to Re^2: Perl, Android web app, AJAX, JSON
in thread Perl, Android web app, AJAX, JSON

> 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

  • Comment on Re^3: Perl, Android web app, AJAX, JSON

Replies are listed 'Best First'.
Re^4: Perl, Android web app, AJAX, JSON
by monx663 (Sexton) on Nov 21, 2017 at 12:54 UTC
    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.
      I'm not sure what you mean with "AJAX layer" and "AJAX methods" in the CMS.

      AJAX is primarily JS interacting with a XMLHttpRequest:

      Particularly, retrieval of data from XHR for the purpose of continually modifying a loaded web page is the underlying concept of Ajax design. Despite the name, XHR can be used with protocols other than HTTP and data can be in the form of not only XML, but also JSON, HTML or plain text

      This is mostly off topic here, maybe try to get informed and reiterate your question.

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

        I perhaps incorrectly called "AJAX layer" methods of the CMS, Perl methods that will be written to be called using AJAX in the browser or the HTML5 android app. But anyway, the concept is that the mobile app will be using the CMS as a data store, so methods for the life-cycle of any object need to be exposed by the CMS to the browser or calling app.