[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    Re: [SMARTY] smarty+javascript
From:       Gabriel Birke <birke () kontor4 ! de>
Date:       2004-03-12 15:46:44
Message-ID: 76BE6D44-743C-11D8-85D6-003065FA313E () kontor4 ! de
[Download RAW message or body]



> 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?

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic