The fastest easiest way to get it right.

x6Data

NAME

x6Data

FUNCTION

The PHP function x6Data takes a variable and sends it to the browser. After the page is loaded, or the JSON call is processed, the data will appear as a property of the x6.data object.

INPUTS


  • string - name of data element
  • mixed - the value or array

SOURCE

function x6Data($name,$data) { 
    $script = "\nx6.data.$name = ".json_encode_safe($data).";";
    x6Script($script);
}
function x4Data($name,$data) {
    if(vgfGet('x6',false)) return x6Data($name,$data);
    $script = "\n\$a.data.$name = ".json_encode_safe($data).";";
    x4Script($script);
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2