Results 1 to 4 of 4

Thread: Close pop-up window and refresh parent page

  1. #1
    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.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    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").

  3. #3
    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 ');
    }

  4. #4
    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,140,143.05920 seconds with 17 queries