在Mozilla 1.0.1上运行javascript [英] Running javascript on Mozilla 1.0.1

查看:77
本文介绍了在Mozilla 1.0.1上运行javascript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我在http服务器上运行了一些cgi脚本,它们也使用了javascript ..


它适用于ie6 ..但是当我在mozilla上尝试它时,脚本得到了没有反应。一些脚本它会发出错误,例如form1 not defined

Hi i got some cgi scripts running on the http server which uses javascript also..

It works well with ie6.. but when i try it on mozilla, the scripts got no response. Some scripts it gives out error such as "form1 not defined"

推荐答案


你好我运行了一些cgi脚本在http服务器上也使用javascript ..


它适用于ie6 ..但是当我在mozilla上尝试它时,脚本没有响应。它给出了一些错误,例如form1 not defined,
Hi i got some cgi scripts running on the http server which uses javascript also..

It works well with ie6.. but when i try it on mozilla, the scripts got no response. Some scripts it gives out error such as "form1 not defined"



请发布错误发生地的一些js代码...你也可以使用firefox和firebug-extension调试你的脚本...


亲切的问候....

please, post some js-code from where the error occurs ... you may also use a firefox and the firebug-extension to debug your scripts ...

kind regards ....



请发布一些js-code来自哪里发生错误...你也可以使用firefox和firebug-extension调试你的脚本...


亲切的问候....
please, post some js-code from where the error occurs ... you may also use a firefox and the firebug-extension to debug your scripts ...

kind regards ....



嗨...这里是代码...


< SCRIPT language =" JavaScript"> function checkChecked(){

var len = del_frm.elements.length; var index = 0;

for(index = 0; index< len; index ++)

{if(del_frm.elements [index] .name ==''select_file'')

{if(del_frm.elements [index] .checked == true)

{confirmSubmit();返回true;

}}}

alert(请选择要删除的文件/文件夹); location.href = QUOT; webfolder.cgi英寸;

返回true;}


< form name =" del_frm" ID = QUOT; del_frm"行动= QUOT; webfolder2.cgi" onsubmit =" return checkChecked()" method = post>

< input type =" checkbox"名称= QUOT; select_file"值= QUOT;例子" id =" checkbox">

< / form>


这个checkChecked()js函数适用于ie6 ..当我尝试用mozilla 1.0.1做它不起作用..

查看javascript控制台:

错误:del_frm未定义


有什么想法吗?

Hi... here are the code...

<SCRIPT language="JavaScript">function checkChecked() {
var len = del_frm.elements.length; var index=0;
for(index=0;index<len;index++)
{ if(del_frm.elements[index].name==''select_file'')
{ if(del_frm.elements[index].checked==true)
{ confirmSubmit(); return true;
}} }
alert("Please select a file/folder to delete"); location.href="webfolder.cgi";
return true;}

<form name="del_frm" id="del_frm" action="webfolder2.cgi" onsubmit="return checkChecked()" method=post>
<input type="checkbox" name="select_file" value="example" id="checkbox">
</form>


This checkChecked() js function works well with ie6.. when i try to do it with mozilla 1.0.1 it does not work..
looking at the javascript console:
Error : del_frm is not defined

Any idea?


可能不是解决方案但是这个:

< SCRIPT language =" JavaScript">

应该是:

< script type =" text / javascript">
Might not be a solution but this:
<SCRIPT language="JavaScript">
is supposed to be:
<script type="text/javascript">


这篇关于在Mozilla 1.0.1上运行javascript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆