tracker issue : CF-3041333

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

Bug 82700:When trying to do any Ext based operations that involve AJAX loading of web pages or data, the operartions fail due to a bug in ext-yui-adaptor

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Dave Boulden / Dave Boulden (dave_damedia)

Created: 04/15/2010

Components: AJAX, Plumbing

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 1

Problem:

When trying to do any Ext based operations that involve AJAX loading of web pages or data, the operartions fail due to a bug in ext-yui-adaptor.js. This is a serious issue as it prevents the use of any underlying Ext library functions that use "lazy loading" or "AJAX derived data". The example provided is of an Ext TreePanel  with recursively loaded  nodes as the user drills down
Method:

\\blrfs04.macromedia.com\builds\coldfusion\bugs\82700


The followinf CFM page will create a CFWINDOW inside which is an Ext TreePanel whose data is loaded dynamically from the CFC listed below. It *should* recursively load new  nodes as the user drills down through the levels

yuiadaptorbug.cfm:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Tree Test</title></head><body><cfwindow center="true" closable="true" draggable="true" modal="true" resizable="true" initshow="true" refreshonshow="false" name="winTree" title="Tree Test" destroyonclose="false"><div id="divTree"></div><cfoutput>        <script>    //    // Currently not working as AJAX async loading is broken in the CF version of ext-yui-adaptor.js    //            var dataURL= 'treedata.cfc?method=getTreeData';            var tree = new Ext.tree.TreePanel({                useArrows: true,                autoScroll: true,                animate: true,                enableDD: true,                containerScroll: true,                border: false,                renderTo: 'divTree',                dataUrl: dataURL,                root: {                    nodeType: 'async',                    text: 'Async nodes',                    draggable: false,                    id: 'treeTest'                }            });        </script>    </cfoutput></cfwindow></body></html>


treedata.cfc:<cfcomponent displayname="TreeData"><CFFUNCTION access="remote" name="getTreeData" output="yes" returntype="any" hint="return recursive list dummy nodes"><cfcontent reset="true">[{    text: 'Node 1',    leaf: false},{    text: 'Node 2',    leaf: false},{    text: 'Node 3',    leaf: false},{    text: 'Leaf 1',    leaf: true},{    text: 'Leaf 2',    leaf: true}]<CFRETURN> </CFFUNCTION></cfcomponent>

This may be linked to bug 82501, but un;like that bug, this one has no possible workaround with out a fix for /CFIDE/scripts/ajax/ext/adapter/yui/ext-yui-adapter.js

This works with a copy of the ExtJS library sourced direct from ExtJS.com
Result:

Webpage error detailsUser Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.4; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322)Timestamp: Thu, 15 Apr 2010 16:55:55 UTCMessage: 'CN' is null or not an objectLine: 2009Char: 9Code: 0URI: http://192.168.1.99/CFIDE/scripts/ajax/ext/adapter/yui/ext-yui-adapter.js

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

Watson Bug ID:	3041333

External Customer Info:
External Company:  
External Customer Name: Dave Boulden
External Customer Email: 44E21D4242A0AD8E992016B6
External Test Config: 04/15/2010

Attachments:

Comments: