Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Hardware>>Window.Opener.Document.getElementById("name").innerHTML - update problems

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')>&nbsp;<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')>&nbsp;<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')>&nbsp;<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')>&nbsp;<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')>&nbsp;<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')>&nbsp;<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')>&nbsp;<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.


 

TOP

For more info

setting a minimum size
Auto Preview of Image 
Refresh with a query s
JS Validation obsolete
Javascript Pop up func
Slide show transitions
I'm a newbie...please!
how to write coding in
Advanced Debug Info 
.js file doesn't work 

News Archive

Adding Graphic To Text
re-direct form after s
pop up window controls
Clock on homepage - He
passing a param from a
Password Procection wi
document.title in same
focus onload 
Counting Wrong from Ri
Help needed on how to 

Related stories:

can not call click() in Firefox or Mozilla
Trouble with Status/Progress Window
tool tips, alt tags, and javascript
test for i.e. less than v5.5
HELP!! Browser Detection with JScript
Inserting Multiple Records into MSaccess Database
How to find local user settings with Javascript
validate a textbox

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics