Author Topic: Reload template after http_post  (Read 2145 times)

Offline Omir

  • Jr. Member
  • **
  • Posts: 26
Reload template after http_post
« on: June 13, 2014, 07:42:50 AM »
I have a table of data on a custom settings page, and a link on each row to delete it. This is working by doing an ajax http_post which is then handled by an action PHP side which does the delete.

At this point I'd like the table to refresh and the deleted items to disappear, but putting this at the end of the php function isn't working:
 $rcmail->output->send();

Do I need to manually remove the table rows with javascript when the php action successfully returns?

Thanks

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Reload template after http_post
« Reply #1 on: June 13, 2014, 09:03:46 AM »
Removing the row with Javascript would be the fastest and cleanest way to do it.