1 Reply Latest reply on May 22, 2008 5:39 PM by Newsgroup_User

    CFWindow and refresh

    Level 1
      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.
        • 1. Re: CFWindow and refresh
          Level 7
          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