Here is the scenario :
I open a pop-up window using JS code in my JS file. There are a few buttons and a table drawn in that Pop-Up window.
On clicking a button in the Pop-Up window, I am calling a JS function using “window.opener.<Func_Name>;”
This is working fine.
When I click on this button; in this function <Func_Name> , I am rewriting the contents of the PopUp i.e. I am erasing the old contents (newWindow.document.getElementsByTagName(“Body”)[0].innerHTML=””; ) and putting new contents.
In this new content, I again have a table and some buttons with which I associate a function in exactly the same way I did before(“window.opener.<Function2_Name>;”)
Till here, everything is working fine(ie From the first popUp, I click a button, the Function <Func_Name> is called, it redraws the PopUp with the table and the buttons exactly as intended). The problem crops up now when I click a button on this latest PopUp. It does not call the function <Function2_Name> to which I associated it with neither it throws up any error although I have virtually copied the contents which I had previously in the Pop-up.
? I am baffled how to go about it.
Plz help.