Re: Body too long: Re: cflayout question

2011-07-25 Thread David Moore

I just upgraded from CF8 to CF9 and am experiencing the same problem with 
cflayout no longer providing dynamic height and width values. I also applied 
9.1 hot fix in hopes it would help and it did not. Anyone have a solution?

Thank you,

David G. Moore, Jr.
UpstateWeb, LLC 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346325
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Body too long: Re: cflayout question

2010-08-06 Thread Victor Moore

I think I found out why it's not working.
In cflayout if I use the height in % the style declaration it
disregards the  and treats it as a pixel value.

This is definitely a bug and should be fixed ASAP. Can't believe that
has passed the original QA and even one year after the release it's
not fixed

I have tried to use jQuery to set the value after the window loads with no luck.

If anybody has any idea how to fix this (until Adobe) releases an
update I will really appreciate.

Thx

Victor

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336080
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Body too long: Re: cflayout question

2010-08-06 Thread Cutter (ColdFusion)

  I haven't followed this thread too closely but, for reference, the 
'center' region of cflayout should always fill the remaining space 
available by default.

Steve Cutter Blades
Adobe Community Professional - ColdFusion
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com


On 8/6/2010 3:44 PM, Victor Moore wrote:
 I think I found out why it's not working.
 In cflayout if I use the height in % the style declaration it
 disregards the  and treats it as a pixel value.

 This is definitely a bug and should be fixed ASAP. Can't believe that
 has passed the original QA and even one year after the release it's
 not fixed

 I have tried to use jQuery to set the value after the window loads with no 
 luck.

 If anybody has any idea how to fix this (until Adobe) releases an
 update I will really appreciate.

 Thx

 Victor

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336083
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Body too long: Re: cflayout question

2010-08-06 Thread Victor Moore

Yes, I know but it doesn't. My problem is a little bit different:  the
cflayout in CF9 has a bug where you can't specify the height in  %. I
mean you can but it's treated as pixels and as a result it cannot be
made to fill the whole screen. So basically it's fixed height.

It's a bug in CF9 as the examples on the extJS site display fine and
it worked fine in CF8.

I looked at the cflayout.js but could not figure out where it's being set.

I really hope that someone has an idea how to fix.

Thanks
Victor

On Fri, Aug 6, 2010 at 5:21 PM, Cutter (ColdFusion)
cold.fus...@cutterscrossing.com wrote:

  I haven't followed this thread too closely but, for reference, the
 'center' region of cflayout should always fill the remaining space
 available by default.

 Steve Cutter Blades
 Adobe Community Professional - ColdFusion
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com


 On 8/6/2010 3:44 PM, Victor Moore wrote:
 I think I found out why it's not working.
 In cflayout if I use the height in % the style declaration it
 disregards the  and treats it as a pixel value.

 This is definitely a bug and should be fixed ASAP. Can't believe that
 has passed the original QA and even one year after the release it's
 not fixed

 I have tried to use jQuery to set the value after the window loads with no 
 luck.

 If anybody has any idea how to fix this (until Adobe) releases an
 update I will really appreciate.

 Thx

 Victor



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336089
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cflayout question

2010-08-04 Thread Victor Moore

I have the following layout and I can't make it work.

All I want is the header and footer to be fixed size and the center to
expand to fill the size of the screen.

Thanks

cflayout name=outerlayout type=vbox style=width:939; height:100%
cflayoutarea style=height:100%;background-color:##0080c0;  
cflayout name=alayout  type=border
style=background-color:##ccc;border:3px solid ##ccc;
 cflayoutarea position=top size=150 align=center
splitter=false style=background-color:##00;; 
header
/cflayoutarea
cflayoutarea   title= position=left closable=false
collapsible=false name=left splitter=false size=230
style=background-color:##ccc;
cflayout name=left type=accordion fillHeight=true
style=width:200;
cflayoutarea title=hey 
h6Some stuff/h6
/cflayoutarea
/cflayout
/cflayoutarea
cflayoutarea position=center name=center
style=background-color:##FFF;
 main stuff
/cflayoutarea
cflayoutarea position=bottom splitter=false
size=70 overflow=hidden style=background-color:##FFF; border:3px
solid ##ccc; height:100%
footer
/cflayoutarea
/cflayout
/cflayoutarea
 /cflayout

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cflayout question

2010-08-04 Thread Victor Moore

There is definitely a difference between CF8 and CF9. I understand
that the ext was changed to 3.x and I was wondering if anybody played
with the css  to make it work the same as CF8.

The following code works fine in CF8 but not CF9. I mean it works, but
the layout is different and I cannot make it to use the whole screen
real estate.

Hopefully somebody has a solution because  I hit a wall.


cflayout type=border
cflayoutarea position=top title=Top Layout Area
   This is the top layout area.
/cflayoutarea

cflayoutarea position=center name=center overflow = hidden 
cflayout type=tab tabheight=100% name=mytabs
   cflayoutarea title=Tab 1 name=t1
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
pThis is the first tab./p
   /cflayoutarea

   cfloop index=x from=2 to=5
cflayoutarea title=Tab #x# name=t#x#
cfoutputpThis is tab number 
#x#./p/cfoutput
/cflayoutarea
/cfloop

cflayoutarea title=D Tab name=hiddentab 
inithide=true
This is the hidden tab. Can't touch this.
/cflayoutarea

/cflayout
   /cflayoutarea

   cflayoutarea position=bottom title=Bottom Layout Area
This is the bottom layout area.
   /cflayoutarea

  cflayoutarea position=left title=Menu splitter=true
collapsible=true size=200 maxsize=200
   p
   a href=javaScript:ColdFusion.navigate('center2.cfm','center')Link
One/abr /
   a href=Link Two/abr /
   a href=Link Three/abr /
   /p
   /cflayoutarea


   cflayoutarea position=right title=Right Layout Area
splitter=true collapsible=true
   This is the right layout area.
   /cflayoutarea

/cflayout



Thanks


On Wed, Aug 4, 2010 at 4:35 PM, Victor Moore victor.mo...@gmail.com wrote:
 I have the following layout and I can't make it work.

 All I want is the header and footer to be fixed size and the center to
 expand to fill the size of the screen.

 Thanks

 cflayout name=outerlayout type=vbox style=width:939; height:100%
    cflayoutarea style=height:100%;background-color:##0080c0;  
        cflayout name=alayout  type=border
 style=background-color:##ccc;border:3px solid ##ccc;
                     cflayoutarea position=top size=150 align=center
 splitter=false style=background-color:##00;; 
                        header
            /cflayoutarea
            cflayoutarea       title= position=left closable=false
 collapsible=false name=left splitter=false size=230
                                style=background-color:##ccc;
                cflayout name=left type=accordion fillHeight=true
 style=width:200;
                                        cflayoutarea title=hey 
                                        h6Some stuff/h6
                                                /cflayoutarea
                                /cflayout
            /cflayoutarea
            cflayoutarea position=center name=center
 style=background-color:##FFF;
                 main stuff
            /cflayoutarea
            cflayoutarea position=bottom splitter=false
 size=70 overflow=hidden

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336011
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cflayout question

2007-08-23 Thread Raymond Camden
And as a general reminder, don't forget for HTML links, if you use the
AjaxLink function it will also keep the content inside the layout.

On 8/22/07, Jim Rising [EMAIL PROTECTED] wrote:
 there you go. :)

 -jim


 On 8/22/07, Brian Kotek [EMAIL PROTECTED] wrote:
 
  If you use cfform inside a cflayout, the form is submitted via AJAX
  automatically.
 
  On 8/22/07, Will Tomlinson [EMAIL PROTECTED] wrote:
  
   I'm messing round with cflayout, and ran across this problem.
  
   My cflayoutarea is using a source file as its content. That source
  file
   contains a form that submits to itself.
  
   When you submit the form, it opens the page as a new page in the
  browser,
   and the cflayouts are gone.
  
   Is there a way to have this form submit, and keep it right where it's
  at?
   I want it to behave like frames would. Maybe that's not possible.
  
   Thanks,
   Will
  
  
 
 

 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286923
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cflayout question

2007-08-22 Thread Will Tomlinson
I'm messing round with cflayout, and ran across this problem. 

My cflayoutarea is using a source file as its content. That source file 
contains a form that submits to itself. 

When you submit the form, it opens the page as a new page in the browser, and 
the cflayouts are gone. 

Is there a way to have this form submit, and keep it right where it's at? I 
want it to behave like frames would. Maybe that's not possible. 

Thanks,
Will 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286902
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cflayout question

2007-08-22 Thread Jim Rising
you could use ajax...

-jim


On 8/22/07, Will Tomlinson [EMAIL PROTECTED] wrote:

 I'm messing round with cflayout, and ran across this problem.

 My cflayoutarea is using a source file as its content. That source file
 contains a form that submits to itself.

 When you submit the form, it opens the page as a new page in the browser,
 and the cflayouts are gone.

 Is there a way to have this form submit, and keep it right where it's at?
 I want it to behave like frames would. Maybe that's not possible.

 Thanks,
 Will

 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286903
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cflayout question

2007-08-22 Thread Brian Kotek
If you use cfform inside a cflayout, the form is submitted via AJAX
automatically.

On 8/22/07, Will Tomlinson [EMAIL PROTECTED] wrote:

 I'm messing round with cflayout, and ran across this problem.

 My cflayoutarea is using a source file as its content. That source file
 contains a form that submits to itself.

 When you submit the form, it opens the page as a new page in the browser,
 and the cflayouts are gone.

 Is there a way to have this form submit, and keep it right where it's at?
 I want it to behave like frames would. Maybe that's not possible.

 Thanks,
 Will

 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286905
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflayout question

2007-08-22 Thread Jim Rising
there you go. :)

-jim


On 8/22/07, Brian Kotek [EMAIL PROTECTED] wrote:

 If you use cfform inside a cflayout, the form is submitted via AJAX
 automatically.

 On 8/22/07, Will Tomlinson [EMAIL PROTECTED] wrote:
 
  I'm messing round with cflayout, and ran across this problem.
 
  My cflayoutarea is using a source file as its content. That source
 file
  contains a form that submits to itself.
 
  When you submit the form, it opens the page as a new page in the
 browser,
  and the cflayouts are gone.
 
  Is there a way to have this form submit, and keep it right where it's
 at?
  I want it to behave like frames would. Maybe that's not possible.
 
  Thanks,
  Will
 
 

 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:286906
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cflayout question in CF 8

2007-08-01 Thread Greg Fuller
Thanks Raymond.  I tried ColdFusion.navigate and the binding and got
them both working.  I'm going with navigate because I can specify a
different url for each node.

BTW, if anyone is having trouble getting the cflayout panels to
automatically resize when the user resizes the browser window, try
putting this in the head:

style type=text/css
html, body {
margin:0;
padding:0;
border:0 none;
overflow:hidden;
height:100%;
}
/style

It worked for me.  There's an entry somewhere on the extjs forum about it.

--Greg


On 7/31/07, Raymond Camden [EMAIL PROTECTED] wrote:
 FYI:

 You can use javaScript: format in your tree. So thats one easy
 solution. Another easy solution is to use bindings. Consider this:

 cfform name=form

 cftree format=html name=mytree
 cftreeitem display=Navigation value=root
 cftreeitem display=Page A parent=root value=a
 cftreeitem display=Page B parent=root value=b

 /cftree
 /cfform

 cfdiv bind=url:content.cfm?value={mytree.node} /

 Thanks to Todd Sharp for digging up the bind syntax (couldn't figure
 out the .node part).

 On 7/31/07, Raymond Camden [EMAIL PROTECTED] wrote:
  In general, the way you change the location of a UI item (layout, div,
  pod, window), is with ColdFUsion.navigate. This is a JavaScript
  function, not a CF function. The syntax is:
 
  ColdFusion.navigate(theurtl,theitem)
 
  So if you had used name=main for your center layout, you could do
 
  ColdFusion.navigate(someurl.cfm, main);
 
  You would need to do this when the user clicks on the treeitem. In
  theory, you can use javaScript:x as your href for tree item, but I
  haven't tried that. I'll try to whip up a demo on my blog later today.
 
  On 7/30/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
   Here is a little code I am working on:
  
   cflayout type=border
  
   cflayoutarea name=top position=top size=50 nbsp; /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
  
  

 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285090
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cflayout question in CF 8

2007-07-31 Thread Steve Sequenzia
Here is a little code I am working on:

cflayout type=border

cflayoutarea name=top position=top size=50 nbsp; /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


Re: cflayout question in CF 8

2007-07-31 Thread Steve Sequenzia
Email never went out for this. Can anyone help?

 Here is a little code I am working on:
 
 cflayout type=border
 
 cflayoutarea name=top position=top size=50 nbsp; 
 /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

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284900
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflayout question in CF 8

2007-07-31 Thread Raymond Camden
In general, the way you change the location of a UI item (layout, div,
pod, window), is with ColdFUsion.navigate. This is a JavaScript
function, not a CF function. The syntax is:

ColdFusion.navigate(theurtl,theitem)

So if you had used name=main for your center layout, you could do

ColdFusion.navigate(someurl.cfm, main);

You would need to do this when the user clicks on the treeitem. In
theory, you can use javaScript:x as your href for tree item, but I
haven't tried that. I'll try to whip up a demo on my blog later today.

On 7/30/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
 Here is a little code I am working on:

 cflayout type=border

 cflayoutarea name=top position=top size=50 nbsp; /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

 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284918
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cflayout question in CF 8

2007-07-31 Thread Raymond Camden
FYI:

You can use javaScript: format in your tree. So thats one easy
solution. Another easy solution is to use bindings. Consider this:

cfform name=form

cftree format=html name=mytree
cftreeitem display=Navigation value=root
cftreeitem display=Page A parent=root value=a
cftreeitem display=Page B parent=root value=b

/cftree
/cfform

cfdiv bind=url:content.cfm?value={mytree.node} /

Thanks to Todd Sharp for digging up the bind syntax (couldn't figure
out the .node part).

On 7/31/07, Raymond Camden [EMAIL PROTECTED] wrote:
 In general, the way you change the location of a UI item (layout, div,
 pod, window), is with ColdFUsion.navigate. This is a JavaScript
 function, not a CF function. The syntax is:

 ColdFusion.navigate(theurtl,theitem)

 So if you had used name=main for your center layout, you could do

 ColdFusion.navigate(someurl.cfm, main);

 You would need to do this when the user clicks on the treeitem. In
 theory, you can use javaScript:x as your href for tree item, but I
 haven't tried that. I'll try to whip up a demo on my blog later today.

 On 7/30/07, Steve Sequenzia [EMAIL PROTECTED] wrote:
  Here is a little code I am working on:
 
  cflayout type=border
 
  cflayoutarea name=top position=top size=50 nbsp; /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
 
  

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284923
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4