Let me put you in the picture on the main window i have 6 butons each of which call this function to open a child window i then intend to run some sql to add things to the childwindow depending on which button was presed and the date (i can do the SQl stuff) and i think i can access the child window using somevar = open(‘newchildwindow’ etc…) and then using that var ,and getElementById to drop everything to a ogject i can use.
BUT even in this very simple example i am working on it’s not working, or more to the point it works once then i and re call the fuction again from the main window i get a runtime error ‘obj’ is not a object. To get it to run again i have to close down the browser.
Any ideas what is going on, and how i can get around this
[ie5 + win 2000]
Thanks
[CODE]
function changeOrViewHistoricalvalues(dbfield) {
var LogedInUser=””, dbtable=””;
historicalpopupwindow = open(‘historicalChangePopup.html’, ‘historicalChangePopup’,’toolbar=no,location=no,sc
rollbars=no,resizable=no,width=515,height=400′)
historicalpopupwindow.focus();
obj=historicalpopupwindow.document.getElementById(‘historicalChange_title_text’);
obj.innerHTML= “<b>” + dbfield +” CHANGE LOG FOR ” + LogedInUser + “</b>”;
}