Forum Moderators: coopster

Message Too Old, No Replies

JS menu in PHP

         

pr3mium

10:00 am on Sep 10, 2003 (gmt 0)



I want to use an EzMenu script on PHP page, but it just keeps telling me errors. I know that there's something wrong with my syntax, so may be someone could check it out?

PHP file itself:

<html>
<body>
<?php
$text = "<script language=\"JavaScript\" src=\"ezdata.js\"></script>
<script language=\"JavaScript\"> ez_codePath = \"code/\" </script>
<script language=\"JavaScript\">
document.write(\"<SCR\" + \"IPT SRC='\" + ez_codePath + \"ezloader.js'><\/SCR\" + \"IPT>\");
</script>
<script language=\"JavaScript\">menusGo()</script>
<script> showPermPanel('Main', 20, 25) </script>";

$ns -> tablerender(LAN_218, $text);
?>
</body>
</html>

vincevincevince

1:40 pm on Sep 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



1) Are the errors javascript errors or php errors?

2) If javascript errors, view the source of the returned page - save it as a local .html file - and debug it from a javascript point of view - and then work backwards

3) If the errors are php errors - can you paste the errors here, and the code from the line numbers they refer to?