Hi all I am stuck trying to figure out the best way to get data as at the moment I have tried a few different ways to achieve this with no luck.
What I am trying to do is update a block of php code that is in my sidebar when I submit a button.
I have tried loading a file with ajax but because I am using the smarty template it loads the file but the
php code does not run.
I have managed to get it to work to a certain point but it has to refresh the page which is not what I am after
as firefox post a pop up alert saying the page needs reloading and also it resets the page that had previous data already loaded.
Does anyone know a better way to acheive this.