Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:38

debugging dynamically generated menu_data.js


Poster: LittleVoodoo
Dated: Sunday March 14 2004 - 18:14:11 GMT

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.


Poster: LittleVoodoo
Dated: Sunday March 14 2004 - 18:25:59 GMT

: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]