- February 8, 2017
- Posted by: user
- Category: Uncategorized
Normally CFWINDOW will execute script of rendering page and you many not able to call function defined in rendering page. Below code how you can submit form to CFWINDOW with loading script as well.
var frm = window.document.frmTest;
objWin = ColdFusion.Window.getWindowObject("Windowresponse");
var objupdate = objWin.getUpdater();
<form name="frmTest" action="testresponse.cfm">
<input type="text" name="field1" value="hello there!"/>
<input type="button" name="btnSubmit" onclick="submitMe()" value="Submit Me">
ColdFusion.Window.create will create cfwindow and use getWindowObject function to get ExtJs object of cfwindow. ExtJs.Updater class will let you post content to cfwindow and update ajax call. objWin.getUpdater() function will retrun object of Ext.Updater which will be use to submit form through ajax call.