Re: [PHP] Re: Generating JavaScript menus on-the-fly

2008-03-10 Thread Ken Kixmoeller
Thank you -- I don't know about those functions -- I'll check them out (for general knowledge, too)... Ken On Mar 10, 2008, at 12:01 PM, Roberto Mansfield wrote: If you are building select menus on the fly using javascript, look at php's json_encode function. It will create a JSON represent

[PHP] Re: Generating JavaScript menus on-the-fly

2008-03-10 Thread Roberto Mansfield
If you are building select menus on the fly using javascript, look at php's json_encode function. It will create a JSON representation of your php data structure. Makes "passing" data sets to javascript very easy. Just build your array of allowed options in php, plug the data into your javascript v