Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 16-05-2009
Member
 
Join Date: Apr 2009
Posts: 79
Close pop-up window and refresh parent page

I have created a program in javascript code but it gives the problem when i try to update my database and when i refreshed parent window and close the pop up it give me error 'window.opener.document' is null or not an object. I have created database, when user click the button in popup window the data belongs to that user wiil be update in the database.
Reply With Quote
  #2  
Old 16-05-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Close pop-up window and refresh parent page

In dot syntax, you go downward from parent object to children......window. Opener refers to the window from which your "pop up sprang" document refers to the html page.I'd suggest using document.getElementById() method to find the textbox. Usually like this: window.opener.document.getElementById("TextBoxRateLockDate").
Reply With Quote
  #3  
Old 16-05-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Close pop-up window and refresh parent page

try this to solve the problem :

try
{
if ( window.opener.document )
{
alert('solve the problem ');
}
}
catch(e)
{
alert('error problem not solved ');
}
Reply With Quote
  #4  
Old 16-05-2009
Member
 
Join Date: Apr 2009
Posts: 79
Re: Close pop-up window and refresh parent page

Thanks for your help!
I have already tried all the suggestion and getting the same error'window.opener.document' is null or not an object.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Close pop-up window and refresh parent page"
Thread Thread Starter Forum Replies Last Post
Page never load even on many refresh Austin Power Networking & Security 4 18-02-2011 07:49 AM
How to Auto Refresh Web Page in Chrome? Jagadamba15 Technology & Internet 5 15-03-2010 11:45 AM
How to pass value from Child to Parent Window Gefry Software Development 3 23-09-2009 02:20 PM
How to Achive Automatic page Refresh Jamaima Software Development 3 12-02-2009 09:40 PM
IE7 blank page when one window close and tries to reopen toeknee29uk Technology & Internet 3 22-01-2009 10:58 AM


All times are GMT +5.5. The time now is 11:22 AM.