Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Auto tabbing within struts iterate using js

 
Mike Graber
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented autotab.js with text from http://www.mattkruse.com/javascript/autotab/source.html but I can not get it to work within logic iterate. I've tried a varity of combination with the below

<logic:iterate id="fLineList" name="fLineList" indexId="index">
<tr>
....
<td> <html:text name="fLineList" property="fund"size="4" maxlength="4" indexed="true" styleClass="tableentry"
on key down="TabNext(this,'down',4)"
on key up="TabNext(this,'up',4,this.form.bfy)"/>
</td>
<td> <html:text name="fLineList" property="bfy" size="4" maxlength="4" indexed="true" styleClass="tableentry"/></td>
....
</tr>
<tr>
<td colspan="8"><div class="error"><html:errors property="<%="fLineList[" + index + "].errorMessage" %>" /></div></td>
</tr>
</logic:iterate>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic