Roundcube Community Forum

 

How to reload a page

Started by buffe, December 08, 2009, 12:44:59 AM

Previous topic - Next topic

buffe

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.

markbecken09

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.

rosali

Try to include some javascript like:

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