cf.Objective() Sean Corfield: AJAX & Scorpio
FYI: Sean doesn't work for Adobe anymore. He is working with a start-up.
CFMX 7 gave us flash forms support. Scorpio gives us extensive AJAX support.
The advanced DHTML controls are using the Yahoo UI library. This is a good thing, because it's a very mature library that is extensible through CSS and JS.
Most (all?) of the AJAX controls work by binding. For example a select box that get's it's values from a CFC on the server might look like:
And you could make related selects like this:
<cfselect name="city" bind="cfc:com.geography.getCities(state={state})"></cfselect>
So, the majority of the code to support that example would be in the geography CFC. And we already know how to write that stuff, right?
Next Sean showed cfgrid format="html". This was crazy simple. It's the same syntax that you'd use to create a grid in the other formats except you specify a "bind" attribute that links to a CFC method.
Oooh! Now he's showing cfajaxproxy. With this tag you can basically create a javascript bridge to call methods on CFCs from javascript client-side. It's very cool. And even better, there's a slick debugging panel that you can use to see the traffic back and forth from the server. It will even dump things to the debugging panel in the format that we are all used to from cfdump.
He also showed the new layout controls. They are a lot like the Flex layout controls. You can have vertically and horizontally separated panels. The panels can be fixed or have a draggable separator. there are even methods for opening and closing panels and it animates the transition. It looked really nice.
Now he's showing the cfwindow tag. This will give you a floating, resizable DHTML window. You can supply the body of the window or it can populate via the "bind" attribute.
People in the crowd are asking if the new controls can be styled. Sean is assuring people that they will be able to style the controls with CSS to their hearts content.
Note: Please be forgiving in regards to my grammar in these posts. I am blogging this stuff during the sessions. Which explains why the tense keeps changing :-)

There are no comments for this entry.
[Add Comment]