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: