62,074
社区成员
发帖
与我相关
我的任务
分享
function AppointmentRegistration(dateValue,weekDay,tsValues)
{
var isOk=window.showModalDialog(encodeURI("HairHouseAppointmentRegistrationEdit.aspx?dateValue="+dateValue+"&weekDay="+weekDay+"&tsValues="+tsValues+"&Type=0"),window,"dialogHeight:400px;dialogWidth:600px;status:0;scroll:0;resizable:1;help:0;");
if(isOk)
{
window.location.reload();
}
}
/// <summary>
/// 从预约情况表接受预约的日期
/// </summary>
private string DateValue
{
get
{
return Request.QueryString["dateValue"].tostring()
}
}
/// <summary>
/// 从预约情况表接受预约的星期
/// </summary>
private string WeekDay
{
get
{
return Request.QueryString["WeekDay"].tostring()
}
}
/// <summary>
/// 从预约情况表接受预约的时间段
/// </summary>
private string TsValues
{
get
{
return Request.QueryString["TsValues"].tostring()
}
}
-------------------------------
parent.htm
<script>
var obj = new Object();
obj.name="51js";
window.showModalDialog("modal.htm",obj,"dialogWidth=200px;dialogHeight=100px");
</script>
modal.htm
<script>
var obj = window.dialogArguments
alert("您传递的参数为:" + obj.name)
</script>
-------------------------------
2.可以通过window.returnValue向打开对话框的窗口返回信息,当然也可以是对象。例如:
------------------------------
parent.htm
<script>
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
</script>
modal.htm
<script>
window.returnValue="http://blog.chengwen.cn";
</script>