81 lines
2.8 KiB
Plaintext
81 lines
2.8 KiB
Plaintext
<%@ page contentType="text/html; charset=GBK"%><%@
|
||
include file="/IncludeBegin.jsp"%><%
|
||
//获得页面参数
|
||
String showText = CurPage.getParameter("ShowText");
|
||
String flag = CurPage.getParameter("Flag");
|
||
if(showText==null) showText="";
|
||
if(flag==null) flag="";
|
||
%>
|
||
<div>
|
||
<pre name="code" class="jscript">
|
||
<%if ("AsControl.OpenPage".equals(showText)) { %>
|
||
/**
|
||
* 打开页面sURL到对应窗口区域sTargetWindow。
|
||
* @param sURL 页面地址
|
||
* @param sPara 传递参数
|
||
* @param sTargetWindow 窗口区域
|
||
* @param sStyle 窗口区域外观特征(弹出窗口)
|
||
*/
|
||
AsControl.OpenPage(sURL,sPara,sTargetWindow,sStyle)
|
||
<%}else if ("AsControl.OpenView".equals(showText)) { %>
|
||
/**
|
||
* 以组件形式打开页面sURL到对应窗口区域sTargetWindow。
|
||
* @param sURL 页面地址
|
||
* @param sPara 传递参数
|
||
* @param sTargetWindow 窗口区域
|
||
* @param sStyle 窗口区域外观特征(弹出窗口)
|
||
*/
|
||
AsControl.OpenView(sURL,sPara,sTargetWindow,sStyle)
|
||
<%}else if ("AsControl.PopView".equals(showText)) { %>
|
||
/**
|
||
* 以组件形式弹出模态窗口打开页面sURL
|
||
* @param sURL 页面地址
|
||
* @param sPara 传递参数
|
||
* @param sStyle 模态窗口外观特征
|
||
* @param dialogArgs 模态窗口参数
|
||
* @returns {Any}
|
||
*/
|
||
AsControl.PopView(sURL,sPara,sStyle)
|
||
<%}else if ("OpenPage".equals(showText)) { %>
|
||
/**
|
||
* 已不建议使用的方法,打开页面sURL到对应窗口区域sTargetWindow。
|
||
* @param sURL 页面地址,包括传递的参数
|
||
* @param sTargetWindow 窗口区域
|
||
* @param sStyle 窗口区域外观特征
|
||
*/
|
||
OpenPage(sURL,sTargetWindow,sStyle)
|
||
<%}else if ("PopPage".equals(showText)) { %>
|
||
/**
|
||
* 已不建议使用的方法,打开页面sURL到对应窗口区域sTargetWindow。
|
||
* @param sURL 页面地址,包括传递的参数
|
||
* @param sTargetWindow 窗口区域
|
||
* @param sStyle 窗口区域外观特征(弹出窗口)
|
||
*/
|
||
PopPage(sURL,sTargetWindow,sStyle)
|
||
<%}else if ("PopPageAjax".equals(showText)) { %>
|
||
/**
|
||
* 已不建议使用的方法,AJAX方式调用页面sURL, 建议使用RunJavaMethod代替。
|
||
* @param sURL 页面地址,包括传递的参数
|
||
* @param sTargetWindow 窗口区域
|
||
* @param sStyle 窗口区域外观特征(一般不需要)
|
||
*/
|
||
PopPageAjax(sURL,sTargetWindow,sStyle)
|
||
<%} %>
|
||
</pre>
|
||
<%if(flag.equals("1")){ %>
|
||
<table align="center" >
|
||
<tr><td>value1:<input style="width: 200px" readonly id="text1"></td>
|
||
<td>value2:<input style="width: 100px" readonly id="text2"></td></tr>
|
||
<tr><%=new Button("点击调用 PopPageAjax 打开ajax页面获取数据","PopPageAjax","run()","","btn_icon_check").getHtmlText()%></tr></table>
|
||
<%} %>
|
||
</div>
|
||
<script type="text/javascript">
|
||
function run(){
|
||
var sReturn = PopPageAjax("/FrameCase/ExampleAjax.jsp");
|
||
var msg = sReturn.split("@");
|
||
document.getElementById("text1").value = msg[0];
|
||
document.getElementById("text2").value = msg[1];
|
||
}
|
||
</script>
|
||
<%@ include file="/Frame/page/jspf/include/jsp_syntaxhighlighter.jspf"%>
|
||
<%@ include file="/IncludeEnd.jsp"%> |