Author Topic: How to reload a page  (Read 2431 times)

Offline buffe

  • Newbie
  • *
  • Posts: 8
How to reload a page
« 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.

Offline markbecken09

  • Newbie
  • *
  • Posts: 3
How to reload a page
« Reply #1 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.

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
How to reload a page
« Reply #2 on: December 15, 2009, 12:45:30 AM »
Try to include some javascript like:

document.location.href='./?_task=settings&_action=myplugin.action';
Regards,
Rosali
__________________
MyRoundcube Project (commercial)