tracker issue : CF-4204493

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

cfwindow and cfform not working after hotfix 1

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Dianna C. / ()

Created: 06/10/2019

Components: AJAX, UI Components

Versions: 2018

Failure Type: Usability Issue

Found In Build/Fixed In Build: CF2018, hotfix 2 and 3 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Windows 10

Vote Count: 2

Problem Description:
 # In IE 11, cfwindow doesn't display a window.
 # In Chrome, the window opens, but can’t be closed. The “x” in the upper right does not show.
 # And if the developer created a button in the window that runs JS "ColdFusion.Window.hide('winFalseDup');", It will hide the greyed out background, but the window will still remain open.
 # Also, if it’s a long scrolling page, the window appears in the middle of the entire page (so you have to scroll down to see it), whereas before, it would appear in the center of the part of the page you currently see.

Steps to Reproduce: Use cfwindow tag, for example:
{code:java}
<cfwindow initShow="false" title="Enter Reason" name="winFalseDup" 
closable="true" center="true" modal="true" resizable="true" draggable="true" 
width="500" height="225" 
bodyStyle="font-family: verdana, Geneva, Arial; color: ##000000;"
 headerStyle="font-family: verdana, Geneva, Arial; text-align:center;">    
</cfwindow> {code}
The javascript that populates the window, shows it and centers it.

ColdFusion.navigate('[urlhere]','winFalseDup');
 ColdFusion.Window.show('winFalseDup');
 ColdFusion.Window.getWindowObject('winFalseDup').center();

Actual Result: See problem description.

Expected Result: It should work like it used to (be able to open, have the X in the upper right, and close).

Any Workarounds: This is the only way we could get it to work: we took the copy of Hotfix 1 Ajax JS code, and overwrote all of the JS files in Hotfix 2 and Hotfix 3. That allowed the same functionality that was working before. The JS/CSS files:
 <script type="text/javascript" src="/cf_scripts/scripts/ajax/messages/cfmessage.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfajax.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/ajax/ext/ext-all.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/ajax/package/cfwindow.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/cfform.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/masks.js"></script>
 <script type="text/javascript" src="/cf_scripts/scripts/cfformhistory.js"></script>
 <link rel="stylesheet" type="text/css" href="/cf_scripts/scripts/ajax/resources/ext/css/ext-all.css" />
 <link rel="stylesheet" type="text/css" href="/cf_scripts/scripts/ajax/resources/cf/cf.css" />

Attachments:

Comments:

Hi Dianna, I have tried below code and it is working fine in ColdFusion 2018 update 2 build. {code:java} <html> <head> </head> <body> <cfwindow initShow="false" title="Enter Reason" name="winFalseDup" closable="true" center="true" modal="true" resizable="true" draggable="true" width="500" height="225" bodyStyle="font-family: verdana, Geneva, Arial; color: ##000000;" headerStyle="font-family: verdana, Geneva, Arial; text-align:center;"> Window contents </cfwindow> <cfform> <cfinput name="hidebutton" type="button" value="Hide Window" onclick="javascript:ColdFusion.Window.hide('winFalseDup');"/> <cfinput name="showbutton" type="button" value="Show Window" onclick="javascript:ColdFusion.Window.show('winFalseDup');"/> </cfform> </body> </html> {code}   1. Can you attach some screenshot where you facing issues? 2. Please provide the code snippet for various cases listed in the bug? 3. Can you check the updates logs and check if there is no issue?  4. Are you seeing any error in browser console?If Yes, please send us the console message. Thanks, Mukesh
Comment by Mukesh K.
30932 | June 18, 2019 11:36:51 AM GMT
Is there a way to get a fix for this issue, prior to Adobe/ColdFusion engineers fixing?
Comment by Carl J.
31248 | August 28, 2019 07:49:21 PM GMT