hi again,
i'm wondering if it's possible to return an array from my php generated content to ajax's responseText. I tried echoing back the whole array variable but can't seem to fully receive it in javascript.
somewhere in file1.php
<?php
$myArray = array();
$myArray = "ajax tech";
$myArray = 20;
echo $myArray;
?>
somewhere in the page that i need the data to display :
//(javascript, ajax = xmlHttp)
var myArray = new Array();
myArray = xmlHttp.responseText;
alert(myArray); //will alert 'Array'
alert(myArray[0]); //alerts 'undefined'