Re: [SMARTY] smarty+javascript

From: Date: Fri, 12 Mar 2004 15:46:44 +0000
Subject: Re: [SMARTY] smarty+javascript
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11101@lists.php.net to get a copy of this message
Hi! I have 2 tables: $table and table[i].tabel_suboptions .These are 2 smarty variables assigned in php. {literal} <script language="javascript"> alert ("ggg"); var a=new Array(); var lung=new Array(); var nr_max={/literal}{$nr_base}{literal}; i=0; j=0; {/literal} {section name="i" loop=$table} {literal}
	     lung[i]= {/literal}{$table[i].nr_suboptions}
{literal} i++; {/literal} {/section} //this section runs well
      {literal}   //from this point, nothing happens
for (i=0;i<=lung[i]-1,i++){
I think this should be for (i=0;i<lung.length,i++){ What happens if you replace this line?

« previous php.smarty.general (#11101) next »