ColdFusion and a small gotcha when wanting to use cfwindow methods from under the hood
Tags: Coldfusion, Ajax, Ajax UI
After reading an email in a mailing list I wanted to put an example together, on how this person could achieve what they wanted to do. The problem that I came across was something that had me stumped for a long time.
It seems that there is something missing in the way ColdFusion is creating the CFWindow and including the correct code.
When doing anything with ExtJS one should be able to do get a handle to any object, and apply some very basic things. One of these is updating the content of the element either by getting the update manager or using the load method.
In the case of using ColdFusion and the cfwindow tag, we should be able to do something like this.
test.load({
url: '/test.cfm',
method:'post',
scripts : true
});
As you can see this is very basic stuff, if you are familiar with ExtJS then you would know that this loads content into the current element. Which in this case is this body of the cfwindow.
I have tried this on ColdFusion 8, 9 & 9.01 with the exact same results. I have raised this as a bug / enhancement to get fixed, however the Bug # is not showing up in the bug database.
There is a work around for this, and its means having to manually include the following lines at the top of your pages after ColdFusion has done its script loading.
<InvalidTag type="text/javascript" src="/cfide/scripts/ajax/ext/ext-all.js"></script>
There are no comments for this entry.



TweetBacks