Here is a little code I am working on:
<cflayout type="border">
<cflayoutarea name="top" position="top" size="50"> </cflayoutarea>
<cflayoutarea name="left" position="left" title="Menu" collapsible="true"
splitter="true" size="200">
<cflayout type="vbox">
<cfform name="left_menu">
<cftree name="left_menu" vscroll="no" hscroll="no" border="no">
<cftreeitem display="Link 1" value="1" parent="left_menu" expand="no">
<cftreeitem display="Link 2" value="2" parent="left_menu" expand="no">
<cftreeitem display="Link 3" value="3" parent="left_menu" expand="no">
</cftree>
</cfform>
</cflayout>
</cflayoutarea>
<cflayoutarea name="main" position="center" source="main.cfm">
</cflayoutarea>
</cflayout>
What I am trying to do is to have the links in the cftreeitems (link 1, link 2,
link 3) change the contents of the cflayoutarea "main". I am not sure if using
source is the best way to do it.
So when link 1 is clicked the "main" cflayoutarea is changed to "link1.cfm" and
so on. I would like to have the update happen via ajax so the page does not
need to be reloaded.
Any help on this would be great.
Thanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284880
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4