现在有一个父页面A,里面有好多好多行数据,写了一个js函数:function fnSelectaRow(otable){
try{
var oTr = fnSelectRow(otable);
id=oTr.id;
Assetlist.fatherID.value = id;
Assetlist.BYID.value = id;
Assetlist.AssetId.value = id;
}catch(e){
//alert(e);
}
}然后在A的fnload里面有一行代码,地址指向了一个中间页面B:
parent.undersideFrame.location.href = "borrowContentFrame.jsp?" ;这个中间页面B里面有个frameset,代码如下:<frameset rows="*" id="frasetArchFolder" framespacing="0"
frameBorder="0" borderColor="#8E8E8E" leftmargin="0" marginheight="0"
marginwidth="0" topmargin="0">
<frame name="fraFileInfo"
src="borrowContentList.jsp" frameborder="0"
framespacing="0" marginheight="0" marginwidth="0" noresize
scrolling="yes">
</frameset>
B里面的代码指向了一个页面C,我的问题是,用js代码能不能取得A页面的值?比如说,每次用户选择了A页面的一行后,都会激发fnSelectaRow函数,然后Assetlist.BYID的值就会改变,我在C页面里面能不能取得A页面里面的Assetlist.BYID的最新值?刚上手js,求人指点,谢谢
try{
var oTr = fnSelectRow(otable);
id=oTr.id;
Assetlist.fatherID.value = id;
Assetlist.BYID.value = id;
Assetlist.AssetId.value = id;
}catch(e){
//alert(e);
}
}然后在A的fnload里面有一行代码,地址指向了一个中间页面B:
parent.undersideFrame.location.href = "borrowContentFrame.jsp?" ;这个中间页面B里面有个frameset,代码如下:<frameset rows="*" id="frasetArchFolder" framespacing="0"
frameBorder="0" borderColor="#8E8E8E" leftmargin="0" marginheight="0"
marginwidth="0" topmargin="0">
<frame name="fraFileInfo"
src="borrowContentList.jsp" frameborder="0"
framespacing="0" marginheight="0" marginwidth="0" noresize
scrolling="yes">
</frameset>
B里面的代码指向了一个页面C,我的问题是,用js代码能不能取得A页面的值?比如说,每次用户选择了A页面的一行后,都会激发fnSelectaRow函数,然后Assetlist.BYID的值就会改变,我在C页面里面能不能取得A页面里面的Assetlist.BYID的最新值?刚上手js,求人指点,谢谢
解决方案 »
- 求高手指导,下面的代码为什么一直没有动态响应???新手,求指导!
- 检测flash是否安装 以及版本号 ,找了很多 , 都不好用
- 访问页面 JS脚本每次都要下载吗?
- 将首字母大写的问题
- js 高手帮我看一下,跳转问题出在哪里???
- 各位大哥新年好!小弟有javacript写入xml 问题请教!高分送各位大哥!
- Cookie 在浏览器中可以保留多长时间? 有什么办法可以让数据保留在浏览器当中呢?比如当网络不通的时候让数据先保留在浏览器中,当网络通了
- 大家帮忙看看我的正则表达哪里写错啦
- js脚本中select标签下面的options长度为空
- 求助,canvas应用的扩展,悬赏100分
- jquery ajax timeout error
- 怎么在页面上显示我写的代码的值(超级简单,我学1天了)
c取a的值,用parent.parent.a画面所在frame名.Assetlist.BYID