Thanks for this great class. It looks beautifull. This is just like we need. A nice clean diagram that also looks unbelivable.
I have some questions though.
Most of us use this to display some data from a mysql database. I also think that not a whole lot use xml with this data. In my case, i have to write a functions that creates the xml nodes when i got all the data from my database. The question is, can you assist with this ? maybe give an example how to do this.
ANd: will there me a version sothat we can use arrays iso xml ?. My knowelage of php isn't that much sothat i and maybe others can use some example in how to use this in a real application.
I want to use it to display this diagram when records in a database contains the same data. Ex: Find all books with the same writer and display this with their titles, publisher and years. This data is coming from a database so:
Bookname Bookname Bookname Bookname
Year publisher Year publisher Year publisher Year publisher
SO an example how to create the xml / array that can be passed to the class would be very meaningfull.
Diogo Resende - 2005-03-10 17:03:31 - In reply to message 3 from marco v
The test1.html and test2.html use test.php
test2.php shouldn't use any of the html nor xml. It loads the class, creates an example array and loads it into diagram.
If any error output occurs, please send it.
Jens Kjelsbak - 2005-03-21 12:57:08 - In reply to message 4 from Diogo Resende
Great work - very useful to a number of applications.
Your examples (test1.html and test2.html) are very good and makes the prototype building easy. Is it possible for you to make a small array example that will generate the same as test2.html?
I'll forward to your work around linking URL's, MySQL and Diagram 2 :-)
Diogo Resende - 2005-03-21 14:37:09 - In reply to message 5 from Jens Kjelsbak
About the array structure to achieve the test2 it's impossible at the moment because the array only supports name attribute. You can only use some functions to change global attributes and set the array and it will be equal to all nodes.
To achieve the customization you should use xml. It's not hard and you can send xml to the class without pointing a file, using loadXmlData() ;)