Code Comments
Programming Forum and web based access to our favorite programming groups.
> 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?
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.