How to submit a SmartClient DynamicForm programmatically? -


i trying create hidden form data, needs submitted jsp page (which gets open in new window), happen programatically, without user pressing submit button.

my sample code

var fsquery = "abcd"; var emailid = "as@gmail.com"; var portalpsswd = "password"; var projectid = "123"; var kburl = "some url consume form post parameters"; var pv="1.2",pn="ada";  this.kbform=isc.dynamicform.create({ width: 300, fields: [ {type: "hiddenitem", name: "email_id", defaultvalue:emailid }, {type: "hiddenitem", name: "portal_password", defaultvalue:portalpsswd}, {type: "hiddenitem", name: "project_id", defaultvalue:projectid}, {type: "hiddenitem", name: "fsquery", defaultvalue:fsquery}, {type: "hiddenitem", name: "product_version", defaultvalue:pv}, {type: "hiddenitem", name: "product_name", defaultvalue:pn}, {type: "hiddenitem", name: "origin", defaultvalue:"administrator"}, {type: "submit", name: "submit", defaultvalue: "submit"} ], action: kburl, target: "_blank", method: "post", cansubmit: true });  this.kbform.submit(); 

the last statement not submit form automatically, if click submit button provided, works needed.

please provide me solution me simulate "submit" type button functionality submit form.

you can try sample code here under "text.js" tab

i'm not sure this, have tried triggering submit on window.onload event? don't think form available until document loaded. i'm sorry don't have examples.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -