frameset中session刷新问题
main.html:
<frameset id="MainFrameSet" rows="83,*,24" frameborder="no" border="0" framespacing="0">
<frame id="top_frame" src="top.html" scrolling="no" noresize="noresize" />
<frameset id="dynamic-frame" cols="190,10,*" border="0" framespacing="0">
<frame id="left_frame" src="leftMenu.html" noresize="noresize" scrolling="no" frameborder="0" />
<frame id="center-frame" name="center-frame" src="center.html" scrolling="auto" frameborder="0" noresize="noresize"/>
<frame id="right_frame" name="right_frame" src="indexs.html" scrolling="auto" frameborder="0"/>
</frameset>
top.html: 签到状态:"+user.authState_Name
center-frame: tellerSignOut.html:
$.ajax({
url : '/tos/teller/tellerAction!saveSignOut.do?usercode=' + id
+ '&password=' + pwd + '&organcode=' +code,
data : '',
dataType : 'json',
timeout : 200000,
success : function(msg) {
if(msg.errorMessage){
alert(msg.errorMessage);
}else{alert('柜员签退成功!');
window.parent.parent.location.reload();
window.close();
问:tellerSignOut.html 中该怎么写top.html中的user.authState_Name 签到状态 才能被刷新 ,从签到编程未签到。
------解决方案--------------------
你不是用吧top.html: 签到状态:"+user.authState_Name
从tellerSignOut.html中注销后设置红色部分为“未签到”?
是的话给签到状态:"+user.authState_Name加一个容器,如
<div id="dv">签到状态:"+user.authState_Name</div>
JScript code
parent.document.getElementById('top_frame').contentWindow.document.getElementById('dv').innerHTML='未签到'