用一JAVASCRIPT对另一个帧仿问时,出现不能仿问的错误,怎么解决?很急啊。

souhay 2001-12-24 09:38:38
...全文
113 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
silentlamb 2001-12-24
  • 打赏
  • 举报
回复
如果跨域访问是肯定不行的,有安全限制
souhay 2001-12-24
  • 打赏
  • 举报
回复
会不会跟服务品设置有关系。
souhay 2001-12-24
  • 打赏
  • 举报
回复
其他机器也不行,不可能都不行吧。
swans 2001-12-24
  • 打赏
  • 举报
回复
=============================================
其它机器上可用,是不是你的机器的浏览器
关闭了脚本运行。还有安全设置等等,请检查
============================================
souhay 2001-12-24
  • 打赏
  • 举报
回复
真的不行啊。
souhay 2001-12-24
  • 打赏
  • 举报
回复
它的错误好像不跟等程序有关,这个程序,在其他地方是可以用的,另一台机器上,
可是到这里就是不行错误是,“拒绝仿问”。
souhay 2001-12-24
  • 打赏
  • 举报
回复
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script language=javascript>
function bbb()
{
parent.notes.document.forms[0].LastName.value="dfdfsf"
}
</script>
</HEAD>
<BODY>
<input type=button value=ddd onclick=bbb()>

</BODY>
</HTML>
swans 2001-12-24
  • 打赏
  • 举报
回复

==================================
再不行请把你的JavsScript帖来看看。
===================================
swans 2001-12-24
  • 打赏
  • 举报
回复

==========================================
我上面的也是仿问另一个帧的文本框。
你把文本框放到<form>标签中了吧?
==========================================
souhay 2001-12-24
  • 打赏
  • 举报
回复
仿问的是另一个帧的文本框。
souhay 2001-12-24
  • 打赏
  • 举报
回复
以上的是行的,可是我那个还是不行原因是拒绝仿问。
swans 2001-12-24
  • 打赏
  • 举报
回复

把以下代码存成同一目录下的三个件
---------------------------------------
test.htm
========
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<frameset cols="120,*" frameborder="NO" border="0" framespacing="0">
<frame name="left" scrolling="yes" noresize src="tt.htm">
<frame name="right" src="ttt.htm">
</frameset>
<noframes>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</noframes>
</html>
-----------------------------------------
tt.htm
======

<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="13">
<script language=JavaScript>
function ookk(strx)
{
window.top.right.form1.text.value = strx;
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p><a href="javascript:ookk('aaaaa')">aaaaa</a></p>
<p><a href="javascript:ookk('bbbbb')">bbbbb</a> </p>
</body>
</html>
---------------------------------
ttt.htm
=======
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#CC99FF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="form1" method="post" action="">
<input type="text" name="text">
</form>
</body>
</html>
----------------------------------------------------------
swans 2001-12-24
  • 打赏
  • 举报
回复

你想仿问另一个帧的什么东东?

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧