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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:12:53+00:00 2026-05-23T14:12:53+00:00

take a look to the example: example.jsp: <script type=text/javascript> $(document).ready(function() { $(‘#Button1’).button().click(function() { $(#mainContent).load(example_1.jsp);

  • 0

take a look to the example:

example.jsp:

<script type="text/javascript">
  $(document).ready(function() {
    $('#Button1').button().click(function() {
      $("#mainContent").load("example_1.jsp");
    });
  });
</script>

<input id="Button1" type="button" value="RELOAD" />
<div id="mainContent"></div>

example_1.jsp:

<script type="text/javascript">
  $(document).ready(function() {
    $("#a").button().click(function() {
      $("#a_form").dialog("open");
    });

    $("#a_form").dialog({
      autoOpen: false,
      height: 480,
      width: 625,
      modal: true
    });
  });
</script>

<input id="a" type="button" value="MODAL" />
<div id="a_form" title="Modal Dialog" class="ui-widget">
  Hello!
</div>

I load example.jsp and I press the button “RELOAD”.
Then, in “mainContent”, appears the button “MODAL”, that open a modal dialog.

But if I press again “RELOAD” button and then “MODAL” the MODAL DIALOG doesn’t appear anymore!
why?
where am i doing wrong?

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

    That is because :

    <input id="a" type="button" value="MODAL" />

    Is using an ID.

    When you run load again you are creating another input with the id=a which is not allowed.

    Try using a class identifier instead of an id

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

Sidebar

Related Questions

Take a look at this html: <head> <title>Test page</title> <script type=text/javascript> function submitForm() {
Take a look at my code : <html> <head> <title>Profile App Example</title> <script type=text/javascript
Take a look at the example code... NodeList folderNodes = document.getElementsByTagName(Folder); DocumentFragment node =
I am trying inherit objects in JavaScript. Take a look at this example: var
Take a look at this example function: RuntimeConfiguration* conf_rt_conf() { RuntimeConfiguration *conf; conf =
Before I ask my question, please take a look at this example function: DateTime.TryParse(01/01/2000,
For example take a look at http://katz.cd/submit.php . Notice when you select a type,
Take a look at example. <button id=go>Expand</button> <button id=go1>Collapse</button> I want if someone press
take a look at this example code: public class Comment { private Comment() {
Take a look at this example: http://www.extjs.com/deploy/dev/examples/multiselect/multiselect-demo.html On it, there are components rendered against

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.