sending array from PHP to JS
Posted: Wed Mar 17, 2004 10:41 pm
hello;
the response that I get from JS_function is 'typeof = function' instead of 'typeof = array';
any thoughts?
thanks
dsdsdsdsd
Asheville NC USA
Code: Select all
<? // this script is in top.right where top -> frameset;
$problem=array('1','2','3','4','5','6','7');
print " <script language="JavaScript" type="text/JavaScript"> ";
print " top.left.JS_function($problem); ";
print " </script> ";
?>Code: Select all
<script type="JS"> // this script is in top.left
function JS_function(an_array)
{ document.getElementById("a_div_tag").innerHTML="typeof =" + typeof(an_array);
}
</script>any thoughts?
thanks
dsdsdsdsd
Asheville NC USA