0
我有這個簡單的隱藏窗體,其目的是將響應重定向到單擊按鈕上的新窗口。它適用於Internet Explorer 9和Chrome瀏覽器,但在firefox 11給我一個警告消息,當彈出塊打開。如何在SmartClient中提交DynamicForm時擺脫Firefox的警告信息?
錯誤消息
表單無法提交。導致這種情況的最可能原因是上傳字段中的值無效。
雖然我沒有試圖上傳任何文件的地方。
DynamicForm代碼
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
);
如何才能擺脫此警告消息的? (如果我添加一個例外彈出窗口攔截器,它重定向沒有任何警告消息)
請幫助。三江源