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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:01:29+00:00 2026-06-12T09:01:29+00:00

I have a modal window called kmodal, which has some links in it. When

  • 0

I have a modal window called kmodal, which has some links in it. When i click one link, it provides me with an accept button. Now when i click this button, i have to bring my jsp within this modal without closing it and i have to get rid of other links without disturbing the lay out. How can i achieve this ?

I tried this one :

        jQuery('#button').load('myJSP', function() {
        jQuery(this).show();

But this does not work.
Can any one suggest any ideas here ?

  • 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-12T09:01:30+00:00Added an answer on June 12, 2026 at 9:01 am

    You just need to do load without the callback function – and you don’t want to load the jsp inside your button.. You want it in the modal. You can read more about .load() here

    jQuery('yourmodalcontainer').on('click','#button',function(){
        jQuery('yourmodalcontainer').load('myJSP');
        // this will load your jsp into the modal
    });
    

    My example uses delegation as I don’t know how/when your button is created

    You need to use delegation when your elements don’t exist in the dom at the time of binding.. So I’m actually not sure when your modal or how it’s created also.. It’s best to bind to the closest parent element that is static and available at dom ready.. but to be safe you can bind it to the body

    jQuery('body').on('click','#button',function(){
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 4 buttons on a page. Each button opens a modal window and
I have a modal settings dialog which is a JDialog. In this settings window
I have a window with a grid in it. This window has a button,
I have a loop called from a database, each loop has a link that
I have using colobox which is a jquery modal window to create a login/regiestration
I have a modal window that uploads files to server. Works great. Upon completion
I have a page in a modal window where I am displaying a slide
on my web site I want to have login/registration form in modal window done
I have a JInternalFrame window that needs to popup a modal dialog box when
How to avoid modal popup closing on postback ?.. I have a popup window

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.