I have a javascript that makes a tree menu. But i need it to pull the titles from a mysql db and display them in the tree. Iam using php pages with the javascript imbedded in it, or can someone show me a way to integrete the php variables into the javascript.
Here the javascript.
var TREE1_NODES = [
['<b>Home</b>', 'main.php', 'mainFrame'],
['<b>Books</b>', null, 'mainFrame'],
['Operating Systems', null, 'mainFrame',
['Linux', 'books.php?catid=', 'mainFrame'],
['Windows', 'books.php?catid=', 'mainFrame'],
], //Operating System closing
['Networking', null, 'mainFrame',
['TCP/IP', 'index.html', 'mainFrame'],
['IPv6', 'index.html', 'mainFrame'],
], //Networking closing
//BOOKS Closing
['<b>DVDs</b>', null, 'mainFrame'],
['Operating Systems', null, 'mainFrame',
['Linux', 'index.html', 'mainFrame'],
['Windows', 'index.html', 'mainFrame'],
], //Operating System closing
['Networking', null, 'mainFrame',
['TCP/IP', 'index.html', 'mainFrame'],
['IPv6', 'index.html', 'mainFrame'],
], //Networking closing
]; //MAIN
So i need to do a
But the doesnt work.