View Single Post
Old November 15th, 2004, 08:20 AM
SiliconFuRy SiliconFuRy is offline
Authorized User
Join Date: Oct 2004
Location: Edinburgh, Scotland, United Kingdom.
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to SiliconFuRy

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,