I need a table that contains anchors. Clicking on this anchors executes the Action I need. The table is working great in FF but not in IE. IE is getting the form object correctly put can not submit it. When I click on the anchor in IE, the page stays there and no action is taken. When I looked at the html source generated I found that s2 automatically sets the onSubmit attribute of the form. I am not sure if this has anything to do with IE not submitting the form.

<display:table name="accounts" id="row">
   <display:column title="ID">
       <s:form action="getAccountById" method="post"
               name="frm${row.id}" id="frm${row.id}" >
           <s:a onclick="this.parentNode.submit();"  href="javascript://">
               <c:out value="${row.firstName}" />
               <c:out value="${row.lastName}" />
           </s:a>
           <s:hidden name="acc.id" value="${row.id}" />
       </s:form>
   </display:column>

the generated html looks like:

<table id="row">

<thead>
<tr>
<th>ID</th>
<th>email</th>
<th>Address</th>
<th>Phone</th>
<th>Fax</th></tr></thead>
<tbody>
<tr class="odd">
<td>
                                        
<form id="frm39" name="frm39" onsubmit="return true;" action="/fe/getAccountById.action" 
method="post">

<a id="frm39_"     href="javascript://"  onclick="parentNode.submit();"> John       
Smith   </a>

<input type="hidden" name="acc.id" value="39" id="frm39_acc_id"/>

</form>

</td



Any Idea what's going on or what to do to fix this ?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to