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


Re: cftree Refresh

2007-11-05 Thread gary gilbert
Hi guys,

I would say this is a bug in the CF implementation.  You may want to log it
as such.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
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:292670
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftree Refresh

2007-11-04 Thread Steve Rucker
Hello,

I'm trying to do a refresh to a CFTREE, but an error appears in the console:
-
Error: _6a.parent has no properties
Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
Línea: 219
-

This is my form:
cfform name=form_navegacion
cftree name=NavTree format=html
  cftreeitem bind=cfc:dirtree.getDirEntries
({cftreeitempath},{cftreeitemvalue})
/cftree
input type=button value=Refrescar onclick=refresh(); /
/cfform

And this is my JS function:
function refresh() {
ColdFusion.Tree.refresh('NavTree');
}

Somebody could make this work? I think I'm doing something wrong

Thanks in advance!

Bruno Paz
GSC, Barcelona

~|
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:292627
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cftree Refresh

2007-11-04 Thread Steve Rucker
Did you ever find the solution to this issue?  I'm having the same problem with 
cftree refresh . . .


The CFC returns the data correctly. When the page loads, the tree loads
nodes well.

2007/8/2, Brian Kotek [EMAIL PROTECTED]:
 

~|
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:292628
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cftree Refresh

2007-08-03 Thread Bruno Paz
Thats my doubt... because in the CF8 Documentation, in the ajax Javascript
Functions appears this sintax:

ColdFusion.Tree.refresh(*name*)



2007/8/3, Brian Kotek [EMAIL PROTECTED]:

 What exactly do you think is going to happen when you click the refresh
 button? Because all it is doing is calling refresh() on the grid, no data
 is
 being passed or updated, so I would think you wouldn't see any change at
 all.

 On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
 
  That 0 in my post should not be there.
 
  On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
   Brian, for me it did 0 that is, the tree got the data correctly but
   the refresh did not work.
  
I copied dirtree.cfc directly from the Forta's third code box here:
  
  
 
 http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsing-With-The-Tree-Control
  
  
  
   On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
Does the CFC method return the data in the correct format for use
 with
  the
tree control?
   
On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:

 Hello,

 I'm trying to do a refresh to a CFTREE, but an error appears in
 the
 console:
 -
 Error: _6a.parent has no properties
 Archivo de origen:
  http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
 Línea: 219
 -

 This is my form:
 cfform name=form_navegacion
 cftree name=NavTree format=html
   cftreeitem bind=cfc:dirtree.getDirEntries
 ({cftreeitempath},{cftreeitemvalue})
 /cftree
 input type=button value=Refrescar onclick=refresh(); /
 /cfform

 And this is my JS function:
 function refresh() {
 ColdFusion.Tree.refresh('NavTree');
 }

 Somebody could make this work? I think I'm doing something
 wrong

 Thanks in advance!

 Bruno Paz
 GSC, Barcelona



   
   
 
 

 

~|
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:285297
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftree Refresh

2007-08-03 Thread Bruno Paz
The CFC returns the data correctly. When the page loads, the tree loads
nodes well.

2007/8/2, Brian Kotek [EMAIL PROTECTED]:

 Does the CFC method return the data in the correct format for use with the
 tree control?

 On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm trying to do a refresh to a CFTREE, but an error appears in the
  console:
  -
  Error: _6a.parent has no properties
  Archivo de origen:
 http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
  Línea: 219
  -
 
  This is my form:
  cfform name=form_navegacion
  cftree name=NavTree format=html
cftreeitem bind=cfc:dirtree.getDirEntries
  ({cftreeitempath},{cftreeitemvalue})
  /cftree
  input type=button value=Refrescar onclick=refresh(); /
  /cfform
 
  And this is my JS function:
  function refresh() {
  ColdFusion.Tree.refresh('NavTree');
  }
 
  Somebody could make this work? I think I'm doing something wrong
 
  Thanks in advance!
 
  Bruno Paz
  GSC, Barcelona
 
 
 

 

~|
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:285296
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


cftree Refresh

2007-08-02 Thread Bruno Paz
Hello,

I'm trying to do a refresh to a CFTREE, but an error appears in the console:
-
Error: _6a.parent has no properties
Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
Línea: 219
-

This is my form:
cfform name=form_navegacion
cftree name=NavTree format=html
  cftreeitem bind=cfc:dirtree.getDirEntries
({cftreeitempath},{cftreeitemvalue})
/cftree
input type=button value=Refrescar onclick=refresh(); /
/cfform

And this is my JS function:
function refresh() {
ColdFusion.Tree.refresh('NavTree');
}

Somebody could make this work? I think I'm doing something wrong

Thanks in advance!

Bruno Paz
GSC, Barcelona


~|
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:285199
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftree Refresh

2007-08-02 Thread Brian Kotek
Does the CFC method return the data in the correct format for use with the
tree control?

On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:

 Hello,

 I'm trying to do a refresh to a CFTREE, but an error appears in the
 console:
 -
 Error: _6a.parent has no properties
 Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
 Línea: 219
 -

 This is my form:
 cfform name=form_navegacion
 cftree name=NavTree format=html
   cftreeitem bind=cfc:dirtree.getDirEntries
 ({cftreeitempath},{cftreeitemvalue})
 /cftree
 input type=button value=Refrescar onclick=refresh(); /
 /cfform

 And this is my JS function:
 function refresh() {
 ColdFusion.Tree.refresh('NavTree');
 }

 Somebody could make this work? I think I'm doing something wrong

 Thanks in advance!

 Bruno Paz
 GSC, Barcelona


 

~|
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:285255
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftree Refresh

2007-08-02 Thread Greg Fuller
Brian, for me it did 0 that is, the tree got the data correctly but
the refresh did not work.

 I copied dirtree.cfc directly from the Forta's third code box here:

http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsing-With-The-Tree-Control



On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
 Does the CFC method return the data in the correct format for use with the
 tree control?

 On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I'm trying to do a refresh to a CFTREE, but an error appears in the
  console:
  -
  Error: _6a.parent has no properties
  Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
  Línea: 219
  -
 
  This is my form:
  cfform name=form_navegacion
  cftree name=NavTree format=html
cftreeitem bind=cfc:dirtree.getDirEntries
  ({cftreeitempath},{cftreeitemvalue})
  /cftree
  input type=button value=Refrescar onclick=refresh(); /
  /cfform
 
  And this is my JS function:
  function refresh() {
  ColdFusion.Tree.refresh('NavTree');
  }
 
  Somebody could make this work? I think I'm doing something wrong
 
  Thanks in advance!
 
  Bruno Paz
  GSC, Barcelona
 
 
 

 

~|
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:285262
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cftree Refresh

2007-08-02 Thread Greg Fuller
That 0 in my post should not be there.

On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
 Brian, for me it did 0 that is, the tree got the data correctly but
 the refresh did not work.

  I copied dirtree.cfc directly from the Forta's third code box here:

 http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsing-With-The-Tree-Control



 On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
  Does the CFC method return the data in the correct format for use with the
  tree control?
 
  On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:
  
   Hello,
  
   I'm trying to do a refresh to a CFTREE, but an error appears in the
   console:
   -
   Error: _6a.parent has no properties
   Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
   Línea: 219
   -
  
   This is my form:
   cfform name=form_navegacion
   cftree name=NavTree format=html
 cftreeitem bind=cfc:dirtree.getDirEntries
   ({cftreeitempath},{cftreeitemvalue})
   /cftree
   input type=button value=Refrescar onclick=refresh(); /
   /cfform
  
   And this is my JS function:
   function refresh() {
   ColdFusion.Tree.refresh('NavTree');
   }
  
   Somebody could make this work? I think I'm doing something wrong
  
   Thanks in advance!
  
   Bruno Paz
   GSC, Barcelona
  
  
  
 
  

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: cftree Refresh

2007-08-02 Thread Greg Fuller
I tried it (using Forta's dirtree CFC, and it didn't work for me
either.  I don't know why it's not working - it is finding the
tree.js.  I know that's not very helpful. Sorry.

On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to do a refresh to a CFTREE, but an error appears in the console:
 -
 Error: _6a.parent has no properties
 Archivo de origen: http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
 Línea: 219
 -

 This is my form:
 cfform name=form_navegacion
 cftree name=NavTree format=html
   cftreeitem bind=cfc:dirtree.getDirEntries
 ({cftreeitempath},{cftreeitemvalue})
 /cftree
 input type=button value=Refrescar onclick=refresh(); /
 /cfform

 And this is my JS function:
 function refresh() {
 ColdFusion.Tree.refresh('NavTree');
 }

 Somebody could make this work? I think I'm doing something wrong

 Thanks in advance!

 Bruno Paz
 GSC, Barcelona


 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: cftree Refresh

2007-08-02 Thread Brian Kotek
What exactly do you think is going to happen when you click the refresh
button? Because all it is doing is calling refresh() on the grid, no data is
being passed or updated, so I would think you wouldn't see any change at
all.

On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:

 That 0 in my post should not be there.

 On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
  Brian, for me it did 0 that is, the tree got the data correctly but
  the refresh did not work.
 
   I copied dirtree.cfc directly from the Forta's third code box here:
 
 
 http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsing-With-The-Tree-Control
 
 
 
  On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
   Does the CFC method return the data in the correct format for use with
 the
   tree control?
  
   On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:
   
Hello,
   
I'm trying to do a refresh to a CFTREE, but an error appears in the
console:
-
Error: _6a.parent has no properties
Archivo de origen:
 http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
Línea: 219
-
   
This is my form:
cfform name=form_navegacion
cftree name=NavTree format=html
  cftreeitem bind=cfc:dirtree.getDirEntries
({cftreeitempath},{cftreeitemvalue})
/cftree
input type=button value=Refrescar onclick=refresh(); /
/cfform
   
And this is my JS function:
function refresh() {
ColdFusion.Tree.refresh('NavTree');
}
   
Somebody could make this work? I think I'm doing something wrong
   
Thanks in advance!
   
Bruno Paz
GSC, Barcelona
   
   
   
  
  

 

~|
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:285273
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cftree Refresh

2007-08-02 Thread Greg Fuller
Good Question. Bruno and I both are getting the javascript error he
indicated, and I don't think that's supposed to happen.  I was kinda
thinking that it would reload the root nodes, but I haven't really
thought it through.  I just tried it because I recognized it as a
modification to Forta's example,, was curious abuout the
ColdFusion.whatever functions, and to see if I could maybe help Bruno.

You've got a good point about the refresh.

On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
 What exactly do you think is going to happen when you click the refresh
 button? Because all it is doing is calling refresh() on the grid, no data is
 being passed or updated, so I would think you wouldn't see any change at
 all.

 On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
 
  That 0 in my post should not be there.
 
  On 8/2/07, Greg Fuller [EMAIL PROTECTED] wrote:
   Brian, for me it did 0 that is, the tree got the data correctly but
   the refresh did not work.
  
I copied dirtree.cfc directly from the Forta's third code box here:
  
  
  http://www.forta.com/blog/index.cfm/2007/6/5/ColdFusion-Ajax-Tutorial-5-File-System-Browsing-With-The-Tree-Control
  
  
  
   On 8/2/07, Brian Kotek [EMAIL PROTECTED] wrote:
Does the CFC method return the data in the correct format for use with
  the
tree control?
   
On 8/2/07, Bruno Paz [EMAIL PROTECTED] wrote:

 Hello,

 I'm trying to do a refresh to a CFTREE, but an error appears in the
 console:
 -
 Error: _6a.parent has no properties
 Archivo de origen:
  http://192.168.1.5/CFIDE/scripts/ajax/package/cftree.js
 Línea: 219
 -

 This is my form:
 cfform name=form_navegacion
 cftree name=NavTree format=html
   cftreeitem bind=cfc:dirtree.getDirEntries
 ({cftreeitempath},{cftreeitemvalue})
 /cftree
 input type=button value=Refrescar onclick=refresh(); /
 /cfform

 And this is my JS function:
 function refresh() {
 ColdFusion.Tree.refresh('NavTree');
 }

 Somebody could make this work? I think I'm doing something wrong

 Thanks in advance!

 Bruno Paz
 GSC, Barcelona



   
   
 
 

 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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