html - How to get rid of firefox warning message while submitting a DynamicForm in SmartClient? -
i have simple hidden form purpose redirect response new window on button click. works perfect in internet explorer 9 , chrome gives me warning message in firefox 11 when popup block on.
error message
form unable submitted. cause invalid value in upload field.
while no trying upload files.
dynamicform code
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 );
how can rid of warning message? (if add exception popup blocker, redirects without warning message)
please help. thankyou
i got solution problem adding below lines after onload
function
// override dynamicform formsubmitfailed function disable warning alert in firefox v11 when popups blocked this.formsubmitfailed = function(){}
you can check smartclient document more information.
Comments
Post a Comment