accessing a php declared array in javascript
Posted: Fri Oct 04, 2002 4:08 am
Hi,
is it possible to access an array declared in php in javascript ??
if so How ?
$allClasses = array();
echo '<td><input type="text" name="new_class_name" maxlength=64 size=20 onchange=checkNewName($allClasses)> </td>';
-----
<script language="JavaScript">
function checkNewName(a){
document.write("length: ",a.length);
}
</script>
is it possible to access an array declared in php in javascript ??
if so How ?
$allClasses = array();
echo '<td><input type="text" name="new_class_name" maxlength=64 size=20 onchange=checkNewName($allClasses)> </td>';
-----
<script language="JavaScript">
function checkNewName(a){
document.write("length: ",a.length);
}
</script>