Skip to main content
May 22, 2008
Question

CFWindow and refresh

  • May 22, 2008
  • 1 reply
  • 463 views
Hello,
I have CF 8 running under IIS6.
I have a report that shows a table of data to the user. Each record has Edit and Delete buttons. Both buttons trigger different CFWindows that collect the edit data or perform the delete and then confirm. After the user closes (hides) the CFWindow, the data that the main report is based on has changed. How can I make the main page either refresh or reload to show the user the changes?
Thanks in advance.
Scott
This topic has been closed for replies.

1 reply

Inspiring
May 23, 2008
simplest way will be to reload the report page - you have
ColdFusion.Window.onHide() function available, in which you can code
refresh of the main page.

another way will be to modify data in the affected rows of the table
without refreshing the whole page - a lot more complicated but possible.
you will have to run some rather complicated javascript to manipulate
the DOM, which may be made a little simpler if your report table is a
cfgrid binded to a cfc...

all the details and some examples are in the cf docs (cfml reference and
dev guide), which you can download from adobe.com. more details and
examples are in various blogs...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/