Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4096396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:02:28+00:00 2026-05-20T20:02:28+00:00

I try to reload my jqgrid after click on the close button in the

  • 0

I try to reload my jqgrid after click on the close button in the popup window in IE8. but it gave me several errors and now i tried to reload it in the page itself. meaning that not from the popup window but run a function(resides in main page) upon press the ‘close’ button in the popup.
i am getting an error – ‘window.opener.document’ is null or not an object.(in IE8) please find my code below –

popup window function –

function closeUserPopup(){

//var x = window.opener.document.getElementById("myjqgrid");
//alert(x);
window.opener.document.callReload(); 
window.close();

}

function in the parent page to reload jqgrid-

function callReload(){
jq("#mygrid").trigger("reloadGrid"); 

}

is there any way to reload the parent page jqgrid from the popup window ? ?( before it get closed) Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:02:28+00:00Added an answer on May 20, 2026 at 8:02 pm

    It’s not window.opener.document but window.opener
    Try to check if the opener is still valid before.
    I usually do something like this:

    if ( window.opener != null)
       window.opener.callReload();
    window.close(); 
    

    A little suggestion.
    I’ve given up with popups like these cause they’re hard to manage.
    I tend to use a jQuery UI Dialog so I can manage everything on the same page.

    UPDATE

    If you’re using window.showModalDialog(); things are even more simple.
    Here’s an example:

    <script type="text/javascript">
        function OpenDialog(userPopupUrl)
        {
            alert("starting!");
            var vReturnValue = window.showModalDialog(userPopupUrl,"dialogWidth:450px;dialogHeight:100­px;center:yes;resizable:no;status:no;help:no;");
            alert("I am here!");
            // You can refresh whatever you want here!!!!
        }
    </script>
    

    Since you’re creating a dialog the client-script process stops until you close the popup window. At that point, your javascript gets the control back and can fire some other actions.
    PS: You can use – as I did – a return value as state here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to prevent page reload when user click a link, so I wrote
i try to make a status monitor for our small network. After the page
When i try to reload designer it gives me this error, what it means?
I want to reload my page, or get the data from my popup result,
I'm trying to change the fetchRequest's predicate on my NSFetchedResultsController, but when i try
Through CommandName=Delete I try to delete a line from the ListView control but not
I'm trying to reload web application from ant. but I got error not found:
I'm building an app with a UITableView and search function. But when I try
I have been using jqGrid for a few months now, and I have made
I try to reload a new captcha image using a simple ajax GET. Works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.