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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:16:46+00:00 2026-06-16T18:16:46+00:00

can I close the dialog javascript after submited the data in the dialog( form

  • 0

can I close the dialog javascript after submited the data in the dialog( form in the dialog was load on different page),.
sory my english is bad, this is the script.

$(document).ready(function () {
        $('a#href').live('click', function (e) {
            e.preventDefault();
            var page = $(this).attr("href")
            var pagetitle = $(this).attr("title")
            var $dialog = $('<div></div>')
            //var $dialog = $(window.parent.document.getElementById('modal')) 
            .html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>')
            //.html(page)
            .dialog({
                autoOpen: false,
                modal: true,
                height: 550,
                width: 700,
                title: pagetitle

                    });
                $dialog.dialog('open');


                });

 });

html :

<a id="href" title="Form Upload Dokumen BAUK / BAUF" href="upload_bauk_r2b.php?project_id=<?php echo $project_id; ?>"></a>
  • 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-06-16T18:16:48+00:00Added an answer on June 16, 2026 at 6:16 pm

    If the iFrame is coming from the same domain, what I assume since you only use a filename and not a whole domain to reference upload_bauk_r2b.php, then it should be possible to access the iFrame from the parent document (where your current script lies within).

    So you could programatically (with Javascript) produce a “close”-Button in the iFrame and then bind the destruction of the modal popup to that close-Button. I am not expert when it comes to jQuery, but I guess you would bind the event similarly as you bound the ‘click’-Event on that -Link.

    Another hint: Why using iFrames anyway? Couldn’t you just load the content of that modal popup dynamically over AJAX?

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

Sidebar

Related Questions

How can I destroy a dialog box after a certaing amount of seconds????? This
I've this script inside my classic asp. <script type=text/javascript> var $dialog = $('<div></div>'); $dialog.load('cad_usr_pto_padrao_livres.asp?cd_usuario='
Edit: We can close. Isn't truly asynchronous, non-blocking javascript impossible? var PATH = require
Can we close WPF window after InitializeComponent() if any validation fails? I am validating
How i can show a close button after certain elapsed, i tried settimeout but
I did search, and got a cloeset answer form How can I automatically close
<div id=dialog><img src=images/load.gif/></div> I have this gif that plays before document.ready , and i'm
can I have a question about how to redirect the page after user invite
Just a quick question: I can do a .load() to a jQueryUI Dialog, which
How can I blankout the page where I show the dialog box. below is

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.