House of Fusion
Home of the ColdFusion Community
Hostmysite VPS Hosting

Search cf-talk

July 05, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition

For ColdFusion hosting try HostMySite.com.
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

CFLayout

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi all,
William Seiter
05/08/08 10:58 A
> Hi all,
Don L
05/08/08 02:16 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
William Seiter
05/08/2008 10:58 AM

Hi all, I have started a project utilizing the ajax commands in cf8 and I have come across a situation.  I want to pull the data inside of the tabbed areas of a cflayout 'only' when the tab is initiated (clicked on).   I was wondering if anyone has any ideas of how to do it.  I was attempting to determine the name of the tab that had been clicked, however I can't seem to get that to work.  My original intention was to get the name and then do a ColdFusion.Refresh style command to load the data into the tab (I will probably put that data into a cfdiv tag) Any ideas? William

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Don L
05/08/2008 02:16 PM

----- Excess quoted text cut - see Original Post for more ----- First, great question. The state of data for each CFlayoutarea tab is loaded (loaded upon the CFlayout execution) by default also seems to be confirmed in a way by the Source Attribute of this Tag in the LiveDocs.  It would be very desirable to another Attribute called to the effect of "Load" and default to True something, then for those of us efficiency maniacs, we can set the Load Attribute to False upon first load for all tabs other than the Selected one. Sorry it does not answer your question but I hope it's relevant. > William

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Cutter (CFRelated)
05/12/2008 09:32 AM

The CFLayout tags use the Ext.BorderLayout object. If you review the 1.1 docs (http://extjs.com/deploy/ext-1.1.1/docs/) you should get most of the information you are looking for. I would suggest you look at the addListener() method. Basically, you create a javascript method that you call from the CF AjaxOnLoad() method. CF places the necessary code calls to call your method once all of the ajax components are completely loaded into the DOM. Then, within your custom method, you get references to the necessary Ext objects and assign your own additional methods to them. For instance, you could assign an event listener to the 'tabchange' event of the tab panel. Adobe has provided some hooks into some of these objects (like the onChange attribute for the 'edit' mode of cfgrid), but not all. The great thing is that most of these things are still accessible directly through the underlying framework. These are the kind of things I'll be talking about during my talk at WebManiacs, so I hope you'll get a chance to attend. Steve "Cutter" Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _____________________________ http://blog.cutterscrossing.com D ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists