Window.Opener.Document.getElementById("name").innerHTML - update problems |
owen_yuen 02-03-2005, 06:10 PM I have to update the contents of the opener window(A) that new contents are generated from database forming a new table as below from window(B). But I use the following method after I close window(B), Opener window(A) couldn't update content except showing up few unexpected numbers.
Any idea will help appreciate or the following higlight causing this error.
window.opener.document.getElementById("update").innerHTML=
<table border=0 width=100% cellpadding=1 cellspacing=1 ><tr bgcolor=navy><td width=22% align=left><font color =white>Attachment Type</font></td><td width=60% align=left><font color =white>Description</font></td><td width=18% align=left></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Project Estimate Detail</a></td><td width=55% valign=top>Prime rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05</td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','1','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','1','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Floor Plans</a></td><td width=55% valign=top>me rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05 </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','2','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','2','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Migration Diagrams</a></td><td width=55% valign=top>me rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05 </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','3','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','3','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Photographs</a></td><td width=55% valign=top>me rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05 </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','4','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','4','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Floor Plans</a></td><td width=55% valign=top>Prime rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05 </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','5','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','5','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Project Estimate Detail</a></td><td width=55% valign=top>Detail Prime rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','6','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','6','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr><tr bgcolor=white><td width=22% valign=top><A href=http://files/CERPRoute/PROJ111-CERP2222-CERP_DB_ERD.jpg target=window>Photographs</a></td><td width=55% valign=top>Prime rate increased; Fed hike commentary - The firm raised the prime rate, effective February 2. A economist comments on the Fed's 2/3/05 </td><td width=23% valign=top><input type=button name=delete Value=Delete onclick=OpenWindow('delete','7','PROJ111-CERP2222-CERP_DB_ERD.jpg')> <input type=button name=update Value=Update onclick=OpenWindow('update','7','PROJ111-CERP2222-CERP_DB_ERD.jpg')></td></tr></table>
liorean 02-03-2005, 06:34 PM Well, I'm typically not the person that says this, but if you want help, you should make it easy for the persons you're asking. That code is close to unreadable as you have formatted it. Please, pretty print it and wrap it in a [code] block to ease our work. (It'll also make us more inclined to take your problem on, which should be beneficial to you.) An online example of the problem also helps.
|
|
|
|
|