the difference between 2 <div> is that first <div> - which is being updated properyl simply encloses a text and resides inside table row element like
The second div that is not getting updates encloses the whole table row like this. ( Note this row is third row in the table ).
<div id="aaa"> <tr> <td></td> </tr>
This is the only difference.
I am using following code in PageB to update pageA.
You should not be using document.all, that is outdated IE only property.
You should not have a div inside of a table that is not inside of a cell.
this is bad markup below! <div> <tr> <td></td> </tr> </div>
Joined: Oct 07, 2005
Thanks Eric . I got it to work by putting div inside the cell . but I just abstracted the problem . The original code has much more to it like having struts tag called <logic:notPresent> . So if bean is not present there would not be a <tr> at all in the first place . In my second parsing , that is thru pageB, I might have valid bean and hence I wanted to draw a table row .
But as you said , I put div inside the cell now .which mean <tr> will always be there even if the bean is not there . That is ok since a empty Row does not draw anything on the screen ( with my stylesheet class )