Old 06-04-2008   #1 (permalink)
Registered User
 

Join Date: Apr 2008
Posts: 2

Unhappy Plz help : window.opener not working

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 http://forums.biorust.com/images/icons/icon9.gif how to go about it.

Plz help.
soshah is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the css script to open link to new window? mary HTML / PHP / ASP / JS 6 03-22-2008 06:42 PM
Allowing the user to resize a window. thatpyrokid Flash & Dynamic Media 4 03-15-2008 04:27 PM
How to find that how long window is not accessed shinde_vishvana HTML / PHP / ASP / JS 3 11-17-2007 07:08 PM
Redirect into new window mmjosh1010 HTML / PHP / ASP / JS 8 10-29-2005 11:56 PM
Centering In Window GoldNetX HTML / PHP / ASP / JS 2 07-12-2004 03:29 AM


All times are GMT +1. The time now is 06:41 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT