RE: Prevent CFTREE Refresh Upon Return to Page

2012-01-13 Thread DURETTE, STEVEN J

You could put the results of the cfc call into a session or some other 
persistent variable, then check in the code if it is set. If it is don't fire 
the cfc, if it isn't fire the cfc. 

This of course is just a possibility since I don't know what is actually going 
on or if the data is of a type that can be persisted.


-Original Message-
From: Dana Kain [mailto:dana_j_k...@rl.gov] 
Sent: Thursday, January 12, 2012 9:42 PM
To: cf-talk
Subject: Prevent CFTREE Refresh Upon Return to Page


I have a form containing a CFTREE bound to a CFC. Users can expand the items in 
the tree and click a submit button, which takes them to another page. They then 
use the IE8 browser back button to return to the CFTREE page.

What is happening is that upon returning the CFTREE is completely 
reinitialized. The expansion that the users did before clicking submit 
disappears and the tree appears as it did upon initial entry to the form..

After further analysis I found that the CFC is firing upon the return, thereby 
refreshing the CFTREE. 

What I would like is that the state of the CFTREE be maintained upon the return 
instead of refreshing.

I assume this is possible but I am not seeing the solution. Nor do I understand 
why the CFC is firing upon a IE8 browser back button event.

Any ideas or suggestions would be highly appreciated.

Regards,

Dkain



~|
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:349490
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Prevent CFTREE Refresh Upon Return to Page

2012-01-12 Thread Dana Kain

I have a form containing a CFTREE bound to a CFC. Users can expand the items in 
the tree and click a submit button, which takes them to another page. They then 
use the IE8 browser back button to return to the CFTREE page.

What is happening is that upon returning the CFTREE is completely 
reinitialized. The expansion that the users did before clicking submit 
disappears and the tree appears as it did upon initial entry to the form..

After further analysis I found that the CFC is firing upon the return, thereby 
refreshing the CFTREE. 

What I would like is that the state of the CFTREE be maintained upon the return 
instead of refreshing.

I assume this is possible but I am not seeing the solution. Nor do I understand 
why the CFC is firing upon a IE8 browser back button event.

Any ideas or suggestions would be highly appreciated.

Regards,

Dkain

~|
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:349489
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm