提交表单不能在Firefox工作,但在IE工作正常 [英] form submit not working in firefox but works fine in IE
本文介绍了提交表单不能在Firefox工作,但在IE工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想提出我的父页面,当我点击提交子页面的按钮。
在我的子页面,我写我的code作为
I want to submit my parent page when I click on submit button of the child page. In my child page I've written my code as
string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>";
// ASP.NET 2.0
if (!Page.ClientScript.IsClientScriptBlockRegistered(scriptString))
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "script", scriptString);
}
它工作正常,在IE浏览器,但在Firefox不工作。有什么能这样做的另一种方法?
it is working fine in IE but not working in Firefox. What could be the alternate method for this?
感谢提前
推荐答案
尝试更换表(0)与形式[0]
try to replace forms(0) with forms[0]
我不认为Firefox的likse括号数组。
I don't think Firefox likse parentheses for arrays.
这篇关于提交表单不能在Firefox工作,但在IE工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文