Feature Rich
Rapid Application Development
Helping you or your customers
Manage their Business

All Commands All Variables


This will return an arrays content as an encoded JSON string ready to be returned via AJAX to a JavaScript function.

If you setup a page with the following content:

{SET(V_RESP(name), John)}
{SET(V_RESP(age), 30)}
{SET(V_RESP(city), London)}

This can then be accessed via a JavaScript AJAX call using the following code:

udb.ajax.page_json(page_id, "mydata=123", function(d){
    var obj = JSON.parse(d.content);
    console.log(obj.name, obj.age, obj.city);

Number Name Default Type Description
1 name String The name of the Array to encode
Example 1 Example
Example 2 Example
to add a Comment.