![sonriente](http://static.forosdelweb.com/fdwtheme/images/smilies/smile.png)
<?php
...
function Object(identificator, URI, type) {
this.identificator = identificator;
this.URI = URI;
this.level;
this.relation;
this.type = type;
for( var i = 0; i < listSearch.length; i++)
{
if(listSearch[i][1]==type) this.icon = listSearch[i][2];
}
this.children = new Array();
}
....
?>
donde esta de color azul me muestra error y me dice que falta ; pero no entiendo a donde, si esta como muestra su estructura o es que falta algo.?
Error:
Parse error syntax error, unexpected T_VAR, expectin ';'
otra pegunta se puede poner un script dentro de php, sin necesidad de poner estos:
print ('<script type="text/ecmascript">');
function a{
...
}
.....
print ('</script>');
?>