asp.net greybox的使用方法
2009-12-24 14:23
351 查看
1. 在http://orangoo.com/labs/GreyBox/下载GreyBox
2. 在<header></header>中加上
<script type="text/javascript" language="javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
3. 按钮事件调用方法:
<button id="Button1" style="cursor: hand;" onclick="SelectBox()" >弹出greybox</button>
<script type="text/javascript" language="javascript">
function SelectBox(){ return GB_showCenter('Document Select Dialog','../DocumentSelect.aspx',475,750);}
</script>
4. 链接调用方法:
<a href='ManagementDlg.aspx' title="Select Dialog" rel="gb_page_center[650, 425]" >View</a>
5. 关闭方法
<script type="text/javascript" language="javascript">
window.parent.parent.GB_hide();
</script>
6. 刷新父页面方法
<script type="text/javascript" language="javascript">
top.window.document.forms(0).submit();
window.parent.parent.GB_hide();
</script>
2. 在<header></header>中加上
<script type="text/javascript" language="javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
3. 按钮事件调用方法:
<button id="Button1" style="cursor: hand;" onclick="SelectBox()" >弹出greybox</button>
<script type="text/javascript" language="javascript">
function SelectBox(){ return GB_showCenter('Document Select Dialog','../DocumentSelect.aspx',475,750);}
</script>
4. 链接调用方法:
<a href='ManagementDlg.aspx' title="Select Dialog" rel="gb_page_center[650, 425]" >View</a>
5. 关闭方法
<script type="text/javascript" language="javascript">
window.parent.parent.GB_hide();
</script>
6. 刷新父页面方法
<script type="text/javascript" language="javascript">
top.window.document.forms(0).submit();
window.parent.parent.GB_hide();
</script>
相关文章推荐
- 使用ASP.NET AJAX异步调用Web Service和页面中的类方法(4):异步通讯层生成的客户端代理类、使用HTTP GET进行调用
- 邮件发送控件jmail使用方法之ASP.NET示例
- ASP.NET 使用alert弹出对话框后,CSS样式失效,字体变大的解决方法
- [转]ASP.NET Web.config配置文件的基本使用方法
- ASP.NET使用确认对话框得简单方法
- ASP.NET中使用UpdatePanel实现局部异步刷新方法和攻略(转)
- ASP.NET AjaxPro的应用 .AjaxPro使用中“XXX未定义”的一种解决方法(转载的)
- 简介使用ASP.NET访问Oracle数据库的方法
- ASP.NET中MVC使用AJAX调用JsonResult方法并返回自定义错误信息
- Asp.net Mvc Framework可以在Controller中使用的Url.Action方法
- Asp.Net使用POST方法最简单的实现
- ASP.NET使用Coolite.Ext.Web.dll,显示ext 未定义 的解决方法
- asp.net MVC + linq to Entity简单教程(四)linq to Entity查询中其它方法的使用
- ASP.NET中 RadioButtonList 单选按钮组控件的使用方法
- ASP.NET文件上传控件Uploadify的使用方法
- ASP.NET多文件上传控件Uploadify的使用方法
- ASP.NET使用Ajax返回Json对象的方法
- 平时在做ASP.NET项目里经常使用的一些函数和方法〔zz〕
- asp.net文本编辑器FCKeditor使用方法详解
- 微软ASP.Net Ajax:使用AJAX直接调用后台页面类方法