Html 如何在SmartClient中提交DynamicForm时消除firefox警告消息?
我有一个简单的隐藏表单,它的目的是通过点击按钮将响应重定向到一个新窗口。它在InternetExplorer9和chrome中工作得非常好,但是当打开弹出框时,它会在Firefox11中给我一条警告消息 错误消息Html 如何在SmartClient中提交DynamicForm时消除firefox警告消息?,html,internet-explorer,firefox,smartclient,dynamicform,Html,Internet Explorer,Firefox,Smartclient,Dynamicform,我有一个简单的隐藏表单,它的目的是通过点击按钮将响应重定向到一个新窗口。它在InternetExplorer9和chrome中工作得非常好,但是当打开弹出框时,它会在Firefox11中给我一条警告消息 错误消息 dojo.provide("amk.geo.DomainCore.forms.SearchForm"); amk.geo.DomainCore.forms.SearchForm = function() { /** * Resource bundle.
dojo.provide("amk.geo.DomainCore.forms.SearchForm");
amk.geo.DomainCore.forms.SearchForm = function() {
/**
* Resource bundle.
* @type Object
*/
this.bundle = amk.geo.tools.bundles.Application;
this.formID = null;
this.controller = null;
this.resBundle = amk.geo.app.framework.controller.AppController.getResourceBundle("amk.geo.DomainCore.Resources");
this.initWidget = function() {
this.Super("initWidget", arguments);
this.formID = "SearchForm";
var params = [
{type: "hidden", name: "EMAIL_ID" },
{type: "hidden", name: "PORTAL_PSSWD"},
{type: "hidden", name: "PROJECT_ID"},
{type: "hidden", name: "fsquery"},
{type: "hidden", name: "PRODUCT_VER"},
{type: "hidden", name: "PRODUCT_NAME"},
{type: "hidden", name: "ORIGIN"}
];
this.setItems(params);
this.action = "https://xxxx.com/default.asp";
this.method = "POST";
this.target = "_blank";
this.canSubmit = true;
};
this.onLoad = function(){
this.submit();
}
}
// define class
isc.ClassFactory.definePackageClass(
"amk.geo.DomainCore.forms.SearchForm", // class name
isc.DynamicForm // superclass
);
无法提交表单。最可能的原因是上载字段中的值无效
虽然我不在任何地方试图上传任何文件
动态表单代码
dojo.provide("amk.geo.DomainCore.forms.SearchForm");
amk.geo.DomainCore.forms.SearchForm = function() {
/**
* Resource bundle.
* @type Object
*/
this.bundle = amk.geo.tools.bundles.Application;
this.formID = null;
this.controller = null;
this.resBundle = amk.geo.app.framework.controller.AppController.getResourceBundle("amk.geo.DomainCore.Resources");
this.initWidget = function() {
this.Super("initWidget", arguments);
this.formID = "SearchForm";
var params = [
{type: "hidden", name: "EMAIL_ID" },
{type: "hidden", name: "PORTAL_PSSWD"},
{type: "hidden", name: "PROJECT_ID"},
{type: "hidden", name: "fsquery"},
{type: "hidden", name: "PRODUCT_VER"},
{type: "hidden", name: "PRODUCT_NAME"},
{type: "hidden", name: "ORIGIN"}
];
this.setItems(params);
this.action = "https://xxxx.com/default.asp";
this.method = "POST";
this.target = "_blank";
this.canSubmit = true;
};
this.onLoad = function(){
this.submit();
}
}
// define class
isc.ClassFactory.definePackageClass(
"amk.geo.DomainCore.forms.SearchForm", // class name
isc.DynamicForm // superclass
);
我怎样才能摆脱这个警告信息?(如果我向弹出窗口阻止程序添加了一个异常,它将在没有任何警告消息的情况下重定向)
请帮忙。谢谢我通过在
onLoad
函数后添加以下行,找到了解决问题的方法
// Override DynamicForm formSubmitFailed function to disable warning alert in Firefox v11 when popups are blocked
this.formSubmitFailed = function(){}
您甚至可以查看文档以了解更多信息