<script type="text/javascript" language="javascript">
$('input[type=checkbox]').each(function(){
$(this).click(function(){
if($(this).attr("checked"))
{
var sysTypeId = $(this).val();
$("#dialog").dialog({modal:true, autoOpen:false});
$("#dialog").dialog('option', 'title', '选择业务类型及种类');
$("#dialog").dialog('option', 'width', 1200);
$("#dialog").dialog('option', 'position', ['center','top']);
$("#dialog").dialog('open');
$('#dialog').load('listSysType.do?sysTypeId=' + sysTypeId);
ev.preventDefault();
}
});
});</script>
因为是动态的获取数据,所以在load的页面中使用了如下代码:
<c:forEach var="bizTypeBean" items="${bizTypes}">
<tr>
<td class="altrow">
<input type="checkbox" name="bizType" value="${bizTypeBean.bizType}"> ${bizTypeBean.value}
</td>
<td>
<table class="cellTable scroll" >
<tr>
<c:forEach var="bizDtlTypeBean" items="${bizDtlTypes}">
<c:if test="${bizDtlTypeBean.bizTypeId == bizTypeBean.bizTypeId}">
<td>
<input type="checkbox" name="bizDtlType" value="${bizDtlTypeBean.bizDtlType}">
${bizDtlTypeBean.value}
</td>
</c:if>
</c:forEach>
</tr>
</table>
</td>
</tr>
</c:forEach> 产生的页面很长,因此下方的数据就看不到了,也不能拖动,能否有个方法给打开的dialog加纵向的滚动条?
$('input[type=checkbox]').each(function(){
$(this).click(function(){
if($(this).attr("checked"))
{
var sysTypeId = $(this).val();
$("#dialog").dialog({modal:true, autoOpen:false});
$("#dialog").dialog('option', 'title', '选择业务类型及种类');
$("#dialog").dialog('option', 'width', 1200);
$("#dialog").dialog('option', 'position', ['center','top']);
$("#dialog").dialog('open');
$('#dialog').load('listSysType.do?sysTypeId=' + sysTypeId);
ev.preventDefault();
}
});
});</script>
因为是动态的获取数据,所以在load的页面中使用了如下代码:
<c:forEach var="bizTypeBean" items="${bizTypes}">
<tr>
<td class="altrow">
<input type="checkbox" name="bizType" value="${bizTypeBean.bizType}"> ${bizTypeBean.value}
</td>
<td>
<table class="cellTable scroll" >
<tr>
<c:forEach var="bizDtlTypeBean" items="${bizDtlTypes}">
<c:if test="${bizDtlTypeBean.bizTypeId == bizTypeBean.bizTypeId}">
<td>
<input type="checkbox" name="bizDtlType" value="${bizDtlTypeBean.bizDtlType}">
${bizDtlTypeBean.value}
</td>
</c:if>
</c:forEach>
</tr>
</table>
</td>
</tr>
</c:forEach> 产生的页面很长,因此下方的数据就看不到了,也不能拖动,能否有个方法给打开的dialog加纵向的滚动条?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货