southbeach
Programmer
I have Page(1) which opens Page(2). Page(2), upon closing by clicking a button, should change the innerHTML of a <div> tab in Page(1).
Here is the code I am using:
I have a tag in Page(1):
and a tag in Page(2):
At the time that I click on the button with the above onClick code, I have and show content within the chargeslist tab.
What am I doing wrong?
One thing I suspect as the problem is that Page(2) is really the third window opened from main page. In other words, I have a data grid that opens Page(1), 1st window, to display a full record, within Page(1) a button opens Page(2), 2nd window, where additional detail information can be entered for record opened in Page(1).
I wonder if I need to name the windows, give Page(1) a name and point my code to that window. If that is the case, how is this done?
Thanks,
Here is the code I am using:
Code:
onClick="javascript: window.opener.document.getElementById('showcharges').innerHTML=document.getElementById('chargeslist').innerHTML; window.close();"
I have a tag in Page(1):
Code:
<div id="showcharges"></div>
and a tag in Page(2):
Code:
<div id="chargeslist"></div>
At the time that I click on the button with the above onClick code, I have and show content within the chargeslist tab.
What am I doing wrong?
One thing I suspect as the problem is that Page(2) is really the third window opened from main page. In other words, I have a data grid that opens Page(1), 1st window, to display a full record, within Page(1) a button opens Page(2), 2nd window, where additional detail information can be entered for record opened in Page(1).
I wonder if I need to name the windows, give Page(1) a name and point my code to that window. If that is the case, how is this done?
Thanks,