tracker issue : CF-4057631

select a category, or use search below
(searches all categories and all time range)

cfwindow no longer works correctly

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): David Jacobson / David Jacobson (David Jacobson)

Created: 09/16/2015

Components: AJAX, UI Components

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

I am trying to open a cfwindow via javascript, the code worked before the upgrade and now all I get is the modal part and no window. Any ideas? 

From the code below I get the alert and then the modal but not the actual window. When I look at it in Firebug I see the correct response but no window. ARGH!!!!

<a href="##" onClick="editAccounting(#regID#);">
<img src="../../_images/icon_edit.png" width="15" height="15" align="absmiddle" alt="Edit Registration"/>

var editAccounting = function(regID) {


	try {
	catch(e) { 
	ColdFusion.Window.create('acctWindow', 'Event Registration Information', 'payment/testData.htm?regID='+regID, {height:575,width:800,modal:true,closable:true,draggable:true,resizable:false,center:true});'acctWindow');


----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4057631

External Customer Info:
External Company:  
External Customer Name: David Jacobson
External Customer Email:  
External Test Config: My Hardware and Environment details:



Hi David, I am not able to observe the issue with CF11 update 6. The behavior is the same in CF10 update 17. The code that I tried using is at the end of this note. You can see the window if you use the buttons. With the anchor you can see the window before the URL specified in the href attribute is loaded in IE10. On Chrome, the URL loads before the pop up window can be seen. Can you share a working code with which you can observe the issue. Which update level in CF11 are you on? Is this something that worked with CF10? Is the output the same on all browser? Test code: <cfajaximport tags="cfwindow"> <html> <head> <script> var editAccounting = function(regID) { alert(regID); try { ColdFusion.Window.create('acctWindow',"editAccont",""); } catch(e) { alert("Err in edit func"); } } var popMsg = function() { alert("buenos dias, amigos!"); ColdFusion.Window.create('popwin', "ola", ""); } </script> </head> <body> <button type="button" onclick="editAccounting('ed')">edit 1-param</button> <button type="button" onclick="popMsg()">pop 0-param</button> <a href="http://localhost" onClick="editAccounting('ed')"> <img src="../../_images/icon_edit.png" width="150" height="25" alt="Edit Registration"/> </a> </body> </html>
Comment by Piyush K.
5861 | September 18, 2015 03:22:23 AM GMT
Piyush, Thanks for helping me figure out this issue. If you go to our admin portal ( and login with the previous credentials I gave you for the other case (piyush/Adobe) and click the 'Coaches' menu option and them 'Add Coach'. You'll see the modal window but no window.
Comment by External U.
5862 | September 18, 2015 08:33:20 AM GMT
Hi David, Could you please try adding <cfajaximport tags="cfwindow">, as shown in Piyush's example? Here is the repro I used: index.cfm -------------------------------------------- <cfajaximport tags="cfwindow"><!--- Without this, Firebug console says "ColdFusion.Window is undefined" ---> <html> <head> <InvalidTag> var myGridInit = function() { var grid = ColdFusion.Grid; var tbar = grid.getBottomToolbar('myGrid'); tbar.add({xtype:'button', text:"Show cfwindow", tooltip:"Show cfwindow", handler:myButtonHandler}); } var myButtonHandler = function() { ColdFusion.Window.create('MyWindow','My Window', 'window.cfm', {center:true, modal:false, height:400, width:400, closable:true, resizable:false}); } </script> </head> <body> <cfform> <cfgrid name="myGrid" format="html" bind="cfc:MyCFC.myFunction({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})" onLoad="myGridInit"> <cfgridcolumn name="myColumn" header="my column"> </cfgrid> </cfform> </body> </html> -------------------------------------------- MyCFC.cfc -------------------------------------------- component { remote struct function myFunction(numeric gridPage, numeric gridPageSize, string gridSortColumn, string gridSortDirection) { return queryConvertForGrid(queryNew("myColumn", "varchar", [["foo"]]), ARGUMENTS.gridPage, ARGUMENTS.gridPageSize); } } -------------------------------------------- window.cfm -------------------------------------------- content of my window -------------------------------------------- Thanks!, -Aaron
Comment by External U.
5863 | September 18, 2015 04:18:00 PM GMT
Bugbase replaced the opening script tag w/ "<InvalidTag>".
Comment by External U.
5864 | September 18, 2015 04:19:21 PM GMT
Hi David, looking at the html source of your site, it seems that you are importing cfwindow tag. Can you try using the test code shared by Aaron or myself, in your environment and share the results. If you continue to face the issue, can you narrow it down to a working test code that can be run independent of you application and share it here.
Comment by Piyush K.
5865 | September 21, 2015 11:37:33 PM GMT
I am importing the tag as needed however there are several div elements that may be causing the issue. I can get a window displayed if I call it directly from a cfm or html page, however in my current code it doesn't work where it did work before CF11.
Comment by External U.
5866 | September 22, 2015 09:57:46 AM GMT
David, I am sure you will agree that it would be difficult to identify and isolate the issue as a bug, unless we have the test code with which we can observe the issue. Is it possible for you to share something with which I can observe it, at my end? It is also important that you confirm how test code that I've shared with you here, is behaving at your end.
Comment by Piyush K.
5867 | September 22, 2015 12:51:13 PM GMT
David, I am closing this as we have not been able to reproduce the issue. But we can revisit this if you can share some test code.
Comment by Piyush K.
5868 | September 28, 2015 12:45:22 AM GMT