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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:32:23+00:00 2026-05-26T18:32:23+00:00

I am trying to use jPanel for collapsible panel, dynamically from an xml content,

  • 0

I am trying to use jPanel for collapsible panel, dynamically from an xml content, but the panels created dynamically does not appear. See the image below

enter image description here

My container

<div id="detailTable" style="width:100%;">

</div>

<!--Creating panels (Same thing if i create manually it is created, see the image)-->
<div title="General Properties" class="class">
            ad
</div>
<div title="Other Properties" class="class">
    ad1
</div>

Jquery

$('.class').jPanel({
        'effect'    : 'fade',
        'speed'     : 'slow',
        'easing'    : 'swing'
    });


//when the user clicks on `Server` (left hand side) the below code is triggered
$('#detailTable').empty();
    $('<div>')
    .html('<div class="titleBlue">Configuration&gt;'+productname+'&gt;Server</div>'+
            '<div title="General Properties" class="class">'+  //Creating panels dynamically
                '<table style="border:#2F5882 1px solid;width:100%;"  cellspacing="1" cellpadding="1">'+
                    '<tbody>'+
                        '<tr>'+
                            '<th style="width:22%" align="left">Version</th>'+
                            '<td style="align="left">'+infa9_pm_version+'</td>'+
                        '</tr>'+
                    '</tbody>'+
                '</table>'+
            '</div>'+
            '<div title="Other Properties" class="class">'+
                '<table style="border:#2F5882 1px solid;width:100%;"  cellspacing="1" cellpadding="1">'+
                    '<tbody>'+
                        '<tr>'+
                            '<th style="width:22%" align="left">Home</th>'+
                            '<td style="align="left">test</td>'+
                        '</tr>'+
                    '</tbody>'+
                '</table>'+
            '</div>')       
    .appendTo('#detailTable');

Update:

This helped me too

$('#detailTable').empty();
    $('<div>')
    .html('')       
    .appendTo('#detailTable').delay(10).queue(function(){
        $('.class').jPanel({
            'effect'    : 'fade',
            'speed'     : 'slow',
            'easing'    : 'swing'
        });
   });
  • 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-26T18:32:24+00:00Added an answer on May 26, 2026 at 6:32 pm

    As you are appending the content dynamically, you should use JQuery live.

    Prototype to associate the jpanel to the class on click –

    $('.class').live('click', function(){
        $(this).jPanel({
            'effect'    : 'fade',
            'speed'     : 'slow',
            'easing'    : 'swing'
        });.focus();
        $(this).removeClass('class');
    });
    

    To trigger programmatically use JQuery trigger.

    $('.class').trigger('click');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying use std::copy to copy from two different iterator. But during course
I'm trying to use a JScrollPane to display a JPanel that might be too
I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
Trying to use an excpetion class which could provide location reference for XML parsing,
Trying to use a guid as a resource id in a rest url but
I've moved on from trying to use OpenGL through Penumbra to trying to draw
I am trying to use the PropertyChangeSupport of JComponent class. But when I am
i'm trying use webview to load a image from sdcard i use this path
I have been trying to use JScrollPane with my applet, but it doesn't work.
Hey guys i'm trying to use drawString() function to draw the result from a

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.