Re: generating js arrays with Flexy

From: Date: Tue, 06 Apr 2004 00:49:19 +0000
Subject: Re: generating js arrays with Flexy
References: 1  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-11638@lists.php.net to get a copy of this message
what php gets generated when you do $this->stories = array(
     11 => 'Fonoregistrazione',
     12 => 'Riversamento',
     13 => 'Stenotipia'
); ..... <flexy:toJavascript flexy:prefix="aTitles" A="stories"> </flexy:toJavascript> Regards Alan Demian Turner wrote:
Hi Alan I'm trying to dynamically build a js array with Flexy, it should end up looking like this: <script type="text/javascript"> aTitles_A = { "11":"Fonoregistrazione", "12":"Riversamento", "13":"Stenotipia", } </script> generated from a PHP hash $aStories = array(
    11 => 'Fonoregistrazione',
    12 => 'Riversamento',
    13 => 'Stenotipia');
any suggestions? tia demian


« previous php.pear.general (#11638) next »