Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CFWindow and refresh

Guest
May 22, 2008 May 22, 2008
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
TOPICS
Advanced techniques
434
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 22, 2008 May 22, 2008
LATEST
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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources