x6Data
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.
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);
}