页面框架frameset的使用(分为左页面,右页面,左页面点击按钮,则右页面弹框操作)
<frameset cols="250,*" border="0" frameborder="no" framespacing="0"><frame src="main_sidebar.jsp" /> <frame src="<%=basePath %>manage/base/teacher/teacherList?type=1"name="concentframe" /></frameset><noframes></noframes>然后在右页面(teacherList执行成功之后返回的list.jsp页面)写一个js弹出框var dialogWin=null;var addProgram = function() { $.dialog.setting.okVal = '确定'; $.dialog.setting.cancelVal = '取消'; dialogWin=new $.dialog({id:'winDialog',title : '添加栏目' ,width:700,height:400,});}当点击左页面(main_sidebar.jsp)按钮时,右页面会弹出框,<span style="margin-left: 10px"><a href="javascript:;" onclick="window.parent.frames['concentframe'].addProgram()" >添加</a></span>window.parent.frames['concentframe'].addProgram():找frame的name为concentframe的页面,左右页面都可以通过类似代码访问