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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:05:04+00:00 2026-05-28T14:05:04+00:00

jqueryui is used to show a dialog box, then if there is a click

  • 0

jqueryui is used to show a dialog box, then if there is a click the ‘dialog_insider’ on the dialog box ,not on the flat (correct wording?) webpage , an ajax call will be made. The file in the called through the ajax
html:

<div id="dialog" style="border:1px solid green; width:150px; margin:auto;">
    <div class="dialog_insider">this is the dialog</div>
    <!-- end of class dialog_insider-->    
</div>
<!- end of id  dialog-->

jquery:

<script type="text/javascript">    
    $(document).ready(function(){
        $("#dialog").click(function(){

            my_dialog = $(this).clone();
            my_dialog.dialog();
            $(".dialog_insider", my_dialog).click(function(){
                alert("clicked");
                $.post("replace.php",function(response){
                });
            });
        });
    });
</script>

the file replace.php contains:

<script type="text/javascript">
    $(document).ready(function(){
        alert("hi");
        $("dialog_insider",my_dialog).html('4444444');
    });
</script>

I don’t get any functionality(i.e. no alert, no html changing) from the replace.php page

I tried with $("opener.dialog_insider",my_dialog).html('4444444');, but no result.

What is the solution?

  • 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-28T14:05:05+00:00Added an answer on May 28, 2026 at 2:05 pm

    To make javascript from ajax-called page running, you need to apped it to the current document.

    And opener won’t work when you make an AXAJ call, works only with opened window.

    $.post("replace.php", {}, function(response){
        $('body').append(response);
    });
    

    JS will execute when you append it, or make eval();

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

Sidebar

Related Questions

For creating interactive web apps, Silverlight and Jquery (jqueryUI included) are used. Is there
I've implemented autocomplete on an input field, but the box does not show up
I tweaked this script that I used from JqueryUi and I have a problem.
Drag is not working after dropping on the area. I have used Jquery UI
I've gotten used to using the jQueryUI dialogbox wherein I call it via var
I have a jQueryUI dialog with some textboxes, plus a button. Right now, the
I have used JqueryUI plugin- date picker to display my date. The format is
Here is the page url http://meracd.com/design/disc_designer.php?disc=cd I've used jqueryUI for the slider. But it
I used the Custom data and display example at http://jqueryui.com/demos/autocomplete/ and simplified it a
I am working on auto complete and used this http://jqueryui.com/demos/autocomplete/#combobox Now my query 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.