tracker issue : CF-3914309

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

body div created for cfwindow has "-body" instead of "_body" so _body.innerHTML does not work.

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Jim Ward / Jim Ward (Jim Ward)

Created: 12/23/2014

Components: AJAX, UI Components

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

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

Vote Count: 0

Problem Description:  The body div created for cfwindow has an id of "-body" (dash) instead of underscore "_body" so the <windowname>_body.innerHTML does not work.

Steps to Reproduce:Create a page with cfwindow then try to change the innerHTML using <windowname>_body.innerHTML.

Actual Result:  Javascript Error

Expected Result:  Window body should be changed.

Any Workarounds:  Use document.getElementById("window name").innerHTML instead.

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

Watson Bug ID:	3914309

External Customer Info:
External Company:  
External Customer Name: Yodeler
External Customer Email:  
External Test Config: My Hardware and Environment details:  Coldfusion 11 update 3.  IIS 7.5, Windows 2008 R2 64 bit.

Attachments:

Comments:

Yodeler, Due to internal changes in the library, we are using hyphen instead of underscore. Is there any particular reason hyphen should be used? The code snippet at the end of this note works as expected with CF11 update3. Thanks. <html> <head> <script> fnChgTxt = function() { Ext.onReady ( function() { win = ColdFusion.Window.getWindowObject("cfwin"); document.getElementById("cfwin-body").innerHTML ='New Text'; } ) } </script> </head> <body> <cfwindow x="0" y="100" width="200" height="150" name="cfwin" title="The Window" initshow="true" source="srcTextPage.cfm" /> <cfform> <cfinput name="chgTxt" type="button" onClick="fnChgTxt()" visible="true" value="Change Win Text"> </cfform> </body> </html>
Comment by Piyush K.
9204 | January 12, 2015 03:05:29 AM GMT
Is this breaking any existing apps? As we communicated in the previous note, this is the result of the underlying API undergoing some changes. (Comment added from ex-user id:prk)
Comment by Adobe D.
9205 | February 03, 2015 06:35:28 AM GMT
Please let us know if you are still facing this issue, we will reopen the bug. (Comment added from ex-user id:prk)
Comment by Adobe D.
9206 | May 06, 2015 05:17:41 AM GMT