Mike, before folks might dig any further into this(and though this may already 
be an obvious thing you've checked), have you confirmed that the problem isn't 
something simpler, like the CFIDE/scripts folder being blocked or not there in 
the site you're using? 

You mention confirming there are no errors in the js console. Are you also 
using any sort of browser dev tool to see/confirm that there are no 404's on 
the page? If the needed JS could not be downloaded, it would of course throw no 
error in the JS console. :-)

It's at least worth checking and letting us know. And if that's not it, then 
I'd say this is rather esoteric stuff. If you don't get an answer here you may 
want to raise it on the Adobe CF forums to get a wider audience, including (but 
not guaranteed to included) Adobe folks.

Hope that's helpful.

/charlie

-----Original Message-----
From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Mike Staver
Sent: Thursday, March 05, 2015 12:10 AM
To: discussion@acfug.org
Subject: [ACFUG Discuss] ColdFusion 11 upgrade breaking ExtJS everywhere

I wrote some code a few years back, and I have very little ExtJS coding 
experience outside of using what shipped with CF 9 & 10. I was disappointed to 
discover that most of one of my pages was broken via the upgrade to CF 11. I 
did some digging, and discovered that CF 11 ships with ExtJS 4.1. I don't 
remember what CF 10 was running, but this code used to work that is associated 
with a CFGrid object:

         // add the 2 custom buttons to the toolbar and init the grid listener
         function init() {
             Ext.onReady(function () {
                 var grid = ColdFusion.Grid.getGridObject("Players");
                 var tbar = ColdFusion.Grid.getTopToolbar('Players');
                 tbar.add({xtype: 'button', text: "Add Player", handler: 
onAdd });
                 tbar.add({xtype: 'tbseparator'});
                 tbar.add({xtype: 'tbfill'});
                 tbar.addButton({xtype:'button', text:"Delete Player", 
handler:onDelete });
                 ColdFusion.Grid.showTopToolbar('Players');
                 grid.addListener("rowdblclick", showEditWin);
             })
         }

The part that doesn't work is the listener for the double clicking of rows. 
Basically, nothing happens now when I double click a row. I've searched for 2 
days now trying to wrap my head around the Ext documentation to understand what 
I'm doing wrong. No errors are thrown on the JS console, but nothing happens 
either. I've found this:

http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.grid.Panel

They show the addListener function, and to be honest, I'm not sure what has 
changed about it or what I'm currently doing wrong. Does anything obvious jump 
out to anyone?



Reply via email to