debugging dynamically generated menu_data.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
LittleVoodoo
Beginner
Beginner
Posts: 2
Joined: Sat Mar 13, 2004 7:22 pm

debugging dynamically generated menu_data.js

Post by LittleVoodoo »

I am dynamically generating the menu_data.js information using php. I have created one crude solution for testing the menu_data file, but wondered if there were others out there? I wondered if there were many people dynamicallly generating their content.

I created a testmenu.php that consists of one line

<?
include ("menu_data.php") ;
?>

it outputs the result of the menu_data file, but not in a very readable format. here is the output:

http://www.itsportsnet.com/milonic/testmenu.php

This works at one level as it gives me any php generated errors, but if a user had put some bad data that was causing errors with milonic's js code it wouldn't catch that.
LittleVoodoo
Beginner
Beginner
Posts: 2
Joined: Sat Mar 13, 2004 7:22 pm

Post by LittleVoodoo »

:roll:
I just figured out a good way to debug the menu_data.php file.

First I didn't have to create the test file, just by running the menu_data.php gives me the output I need and second by adding // <br> to where I want page breaks gives me the output so I can have a look at my code.

http://www.itsportsnet.com/milonic/menu_data.php

any other suggestions for debugging the menu_data file, however, would still be appriciated.[/quote]
Post Reply