Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: buffe on December 08, 2009, 12:44:59 AM

Title: How to reload a page
Post by: buffe on December 08, 2009, 12:44:59 AM
Hi,
I have created a tab 'blacklist' in the section menu of the settings page. I have added a list box to display the blacklist and a input box to add new item to the list. When I clicked the save button  the new item is saved and the message "successfully saved" appears(I have written the code for it) but the page does not refresh with the new values displaying in the list box. I have used separate fields in the users table to save the blacklist. So can any one guide me how to refresh the page I've created to display the new values.

Thank you.
Title: How to reload a page
Post by: markbecken09 on December 14, 2009, 11:46:06 PM
Hey,
That alert is basically stating that you submitted a form and by reloading the page you are going to resubmit the same data from the form again.This might work to not reload the page but reload the location ... let me know if it works.

Thanks.
Title: How to reload a page
Post by: rosali on December 15, 2009, 12:45:30 AM
Try to include some javascript like:

document.location.href='./?_task=settings&_action=myplugin.action';