class to generate Javascript Object ??
| From: | Michael A. Peters | Date: | Sun, 04 Oct 2009 13:39:14 +0000 |
| Subject: | class to generate Javascript Object ?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-298551@lists.php.net to get a copy of this message | ||
I wrote a php class to generate flowplayer/html5 media code for my site:
http://www.shastaherps.org/xml_MMmediaClass.phps
The "buildFlashvars()" function in it is really ugly and will be a pain to update as I modify the class in the future.
What it does is generate a JavaScript object string, as described here:
http://flowplayer.org/tools/flashembed.html
I'm thinking (hoping) there is already a php class somewhere for generating JavaScript object strings that I can instead of my ugly easily breakable way of doing it.
Anyone know of one?