xml 콘텐츠에서 동적으로 접을 수있는 패널에 jPanel을 사용하려고하지만 동적으로 생성 된 패널이 표시되지 않습니다. 이 너무jquery에서 JPanel을 동적으로 만드는 방법은 무엇입니까?
나에게 도움이:
<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>'+productname+'>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');
업데이트를
내 컨테이너 아래 이미지 참조
$('#detailTable').empty();
$('<div>')
.html('')
.appendTo('#detailTable').delay(10).queue(function(){
$('.class').jPanel({
'effect' : 'fade',
'speed' : 'slow',
'easing' : 'swing'
});
});
답장을 보내 주셔서 감사합니다.하지만 div를 클릭 한 경우에만 패널이 표시됩니다. 광고 작성 직후에 광고를 어떻게 표시 할 수 있습니까? – abi1964
클릭을 프로그래밍 방식으로 트리거 할 수 있습니다. 업데이트 된 답변. – Jayendra
고마워,'.delay (10) .queue'도 나에게 도움이되었다. 업데이트 된 질문보기 – abi1964