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 6784503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:00:10+00:00 2026-05-26T17:00:10+00:00

EDIT: I am having an issue with reloading a div on a parent page

  • 0

EDIT: I am having an issue with reloading a div on a parent page using jquery from an Iframe Modal Box.

What’s on the parent page? – Just a div called “#hidden” that loads a separate php page called “getcontent.php”

What’s on the Iframe modal box? – Just a form. On form submit it goes to a submission page where I do all my updating inside the database. After all of that updating is complete, then my function for closing the modal box and refreshing the div comes in inside the iframe

Here’s my code:

$(document).ready(function() {
    $('#hidden').load('getcontent.php');
    parent.$.fallr('hide', function(){
    });
});

I expect this code to a)refresh the div #hidden on the parent page and b)close my modal box. So far closing the modal box works perfectly! Refreshing the div does not

  • 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-26T17:00:11+00:00Added an answer on May 26, 2026 at 5:00 pm

    Within your callback function you create another function, but you don’t do anything with it. It gets created and thrown away. If you remove the inner-most function I guess it’ll work loads better for you:

    parent.$.fallr('hide', function(){
         $('#hidden').load(
             'admin/getcontent.php', 
             { pageID : "<? echo $_REQUEST['pageID']; ?>" }
         );
    });
    

    Possibly also failing cause of the query string. Not sure if it’ll be able to encode that properly. It should do so if you place it in the data-parameter however. See above.

    So, now that we’ve gotten a much clearer explanation, and gotten rid of the extra function and query string (the latter of which was probably working fine anyhow), we can move forward.

    With the current code you’re asking the #hidden div on the dialog to load content. But there is no #hidden div on the dialog, it’s on the parent. Prefixing with parent. would fix that, but we also have another issue. We’re telling the dialog to refresh the div as soon as the dialog loads. That’s not what we want. We want it to refresh when we’re closing the dialog, right? So moving it into the fallr callback should fix that. And that should run in the context of the parent, so no parent. prefix required.

    $(document).ready(function() {
        parent.$.fallr('hide', function(){
            $('#hidden').load('getcontent.php');
        });
    });
    

    But that’s more or less what we had earlier that was causing the problem with the context not existing any more.

    So, to me the problem is that you’re trying to do things with the parent from the child. In my opinion, the parent should be the one doing things. So when the dialog is ready to be closed it should call a function on the parent that will close the dialog and update itself:

    //From an event on the dialog
    parent.closeDialogAndRefresh();
    
    //On the parent define it
    function closeDialogAndRefresh() {
        $.fallr('hide');
        $('#hidden').load('getcontent.php');
    }
    

    If that doesn’t work. Try starting a timer that will call closeDialogAndRefresh after 50ms or something like that.

    The real problem here I think is that you’re using IFrames instead of floating divs from some decent UI-framework. Hope you’ll get where you’re going though.

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

Sidebar

Related Questions

i am having an issue, where java is reading an array list from a
I am having an issue when a page contains multiple ModalPopups each containing a
Lately I've been using client-side jQuery scripts to fill in forms when users edit
I'm having an issue with CruiseControl.net where the web dashboard just won't work in
EDIT: It seems to be something with having the two queues in the same
Edit 1: Uninstalled & Reinstalled Edit 2: Same problem. Seriously? Yes. I am having
What is the difference between HAVING and WHERE in an SQL SELECT statement? EDIT:
Are there solutions/tutorials/open source solutions to providing the functionality of having Content Editors edit
Edit: From another question I provided an answer that has links to a lot
I'm having this issue on several server environments. We have a list at the

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.