Skip to main content
November 26, 2007
Question

Deleting files

  • November 26, 2007
  • 3 replies
  • 465 views
Is there a way to accomplish the following:

Showing a list of files with a delete link next to it, and as soon as the delete link is clicked then i want it to call a cfc to delete the file and just refresh that section where it shows the listing of files, i don't want the whole page to refresh.

    This topic has been closed for replies.

    3 replies

    Inspiring
    November 26, 2007
    Another approach is to use frames or iframes to display the listing of files.
    November 26, 2007
    Do you think that you can provide me with a very simple example?
    November 26, 2007
    That sounds like exactly what i am looking for. Do you think that you could show me a very simple example, so i can get a better idea on where to start.
    Inspiring
    November 26, 2007
    Sure, you use cfdirectory to get a query of your directory contents, output the values with links around the file names, use something like JQuery to catch your link clicks to kick off an Ajax call (probably using AjaxCFC) to your component methods, and when JQuery sees a successful call you can then use it to refresh your directory listing box. Simple stuff