Hmmm, im no expert, but you could use ur PHP code to generate the variable, for instance
echo "<script language=javascript> .... blah blah jscript stuff....";
$lego = array(1,2,3);
// Not 100% sure how to define an array in jscript, but somethign along the lines of this
$jscript_array = "array myArray = new Array(";
for($i;$i<count($lego);$i++) {
$jscript_array .= $lego[$i] . ", ";
}
$jscript_array .= ")\;";
Might sound a bit confusing, but hopefully you get me..
Many shoes,
James/SiliconFuRy
|