• MODX.com

    2,916 downloads

SIMPLX_RPC

SIMPLX_RPC is an extra by larscwallin, first released on 2011-09-12.

Package Description

AJAX made really simple

SIMPLX RPC is a remote method invocation Snippet which makes it possible to call the ModX API from the client browser using XMLHTTP or similar. This means that you can fetch (for now...) data from ModX without reloading the page. This means more interactive, dynamic, responsive, personal web sites :)

A JSON RPC standard interface also makes life easy when integrating system to system.

   

Usage/Installation Instructions

To get the Snippet working please,

  • create one page which uses the SIMPLX RPC template. This is the page which will act as a access point for all RPC calls. Remember to set appropriate access permissions for this page. 
  • create another page using the SIMPLX RPC EXAMPLE template. This example template has some really nice sample/debug features!
  • Test out the SIMPLX_RPC_EXAMPLE Snippet which shows you how to query getResources.  

The Examples Console

The console on the example page is really cool :D 

It lets you make test calls to your site and try out templating etc. 

  • The "Query Config" tab shows the current json config object. To start using your ModX site to get actual "live" data, just set the params to match your setup (url, pageid which uses the SIMPLX_RPC template, Snippet name and parameters).On my site my live test-example Query looking like this: {"host":"http://mywebaddress.com/modx/","service":"?id=2","rpc":{"jsonrpc":"2.0","id":"1","method":"simplx_rpc_example","params":{"parents":"0"}}} 
  • The "Template" tab contains the jQuery Template html code. This can be updated and viewed "live".
  • The "JSON Result" tab shows the current response from the server.

Details

Developer(s)
larscwallin
Released
2011-09-12
First seen
2011-09-12
License
GPLv3
Supported databases
MySQL SQL Server
Minimum MODX Requirement
2

SIMPLX_RPC Releases

Vendor Signature Released on
MODX.com 0.6.6-pl 2011-09-12 (7 years ago)