PDA

View Full Version : CF8 and ExtJS dialog windows...



Loony2nz
20 Aug 2007, 8:54 PM
Hello,

I'm upgrading from CF7 to CF8 and just really love the new AJAX features built in.
Right now I'm playing around with <cfwindow> that creates a pop up window using ExtJS code. Pretty sweet stuff.

I just have one question... How do I intercept the close (x) button in the upper right to say...use an effect like SwitchOff or Fade. Right now it just closes. No, "web 2.0" effects.

I saw a post somewhere where I can use Spry effects to fade the window in (a bit of a hack but it works), but I can't find anywhere on how to close the window with effects.

Thought I'd come to the source and see if the seasoned ExtJS folks can point me in the right direction.

Thank you!
Chris

CutterBl
5 Sep 2007, 2:02 PM
Well, I'm not sure how you would apply the effects themselves. You would access the window itself, using JS, by getting a reference to the object:

[PHP]function doSomething(){
var myWindow = ColdFusion.Window.getWindowObject(