Title:
Bug 82501:I am attempting to refresh the contents of a CFLAYOUTAREA tab panel using the underlying Ext library as there appears to be no supplied method via the ColdFusion ajax scripts
| View in TrackerStatus/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Dave Boulden / Dave Boulden (dave_damedia)
Created: 03/24/2010
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 1
Problem:
I am attempting to refresh the contents of a CFLAYOUTAREA tab panel using the underlying Ext library as there appears to be no supplied method via the ColdFusion ajax scripts. Every different method I try fails as there appears to be some issue with the /CFIDE/scripts/ajax/ext/adapter/yui/ext-yui-adapter.js script. I replaced the minified version with ext-yui-adaptor-debug.js version to get a more meaningful error message. in the browsers javascript error console.I have pasted a CFM template contents that shows the same error being produced with 4 different methods of reloading a tab's contents via the Ext library.
Method:
\\blrfs04.macromedia.com\builds\coldfusion\Bugs\82501
This self contained CFM template will reproduce the bug:<!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>CF (Ext 3.0) Data Connection Bug Example</title><script type="text/javascript">function reloadTab() {var tab1 = ColdFusion.Layout.getTabLayout("tabContent").getActiveTab();tab1.load({url:'http://www.google.com', test:'Refreshing the tab...', timeout: 20, scripts:true});}function updateTab() {var tab1 = ColdFusion.Layout.getTabLayout("tabContent").getActiveTab();tab1.getUpdater().update({url:'http://www.google.com'})}function dataconnTab() {var tab1 = ColdFusion.Layout.getTabLayout("tabContent").getActiveTab();var conn = new Ext.data.Connection();conn.request({ url: 'http://www.google.com', method: 'GET', success: function(responseObject) { tab1.el.innerHTML=responseObject.responseText; }, failure: function() { Ext.Msg.alert('Status', 'Unable to refresh the plan. Please try again.'); }});}function ajaxreqTab() {var tab1 = ColdFusion.Layout.getTabLayout("tabContent").getActiveTab();Ext.Ajax.request({url : 'http://www.google.com' , //params : { action : 'getDate' },method: 'GET',success: function ( result, request) { tab1.el.innerHTML=result.responseText;},failure: function ( result, request) { Ext.MessageBox.alert('Failed', 'Unable to refresh the plan. Please try again.'); } });}</script></head><body><cflayout name="WPVlayout" type="border" fittowindow="yes" > <cflayoutarea align="center" closable="false" collapsible="false" position="left" name="left" overflow="auto" bindonload="true" size="180" splitter="true" title="Left Panel"> <form> <input type="button" name="reloadtab" value="Reload Tab" onclick="reloadTab();" /><br /> <input type="button" name="updatetab" value="Update Tab" onclick="updateTab();" /><br /> <input type="button" name="dataconntab" value="Data Conn Tab" onclick="dataconnTab();" /><br /> <input type="button" name="ajaxreqtab" value="Ajax Req Tab" onclick="ajaxreqTab();" /> </form></cflayoutarea> <cflayoutarea align="left" position="center" name="right" overflow="hidden" bindonload="true"> <cflayout type="tab" align="left" name="tabContent" tabposition="top" tabstrip="yes"> <cflayoutarea name="tab1" overflow="auto" title="Tab 1">Initial tab one content</cflayoutarea> </cflayout></cflayoutarea> </cflayout> </body></html>
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: Wed, 24 Mar 2010 15:29:03 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: 3041203
External Customer Info:
External Company:
External Customer Name: Dave Boulden
External Customer Email: 44E21D4242A0AD8E992016B6
External Test Config: 03/24/2010
Attachments:
Comments: