View Single Post
Old 06-26-2009, 02:07 AM   #1 (permalink)
Kay1021
The Contributor
 
Join Date: May 2008
Posts: 36
Thanks: 5
Kay1021 is on a distinguished road
Confused Refresh page under mootools lightbox

Ok i'm using this mootools lightbox type thing called squeezebox

When the squeezebox pops up it had a php form in it...and using the form works well and everything. However to see the results I need it so that when you close the box that the page that was behind it (the one you started on) refreshes. Now i don't know too much on how to write javascript code...but with some other things I did I was able to pass variables through a url when the the box closes (or whatever) and then on my page update my database. So I thought I could use that simliar code and and then when you closed the box that it would grab the variable and then i could use that to say refresh...with the header which usually works for me. However this time it does work to update the database (tested it to know that it was actually doing something when i closed the box) but that's not what I need...I need the page to refresh....automatically so that the results of what was done in the squeezebox will be visible...without the user manually refreshing.

Code:
if(isset($_GET['r']))
		{
//updating database works here
}
Hopefully this makes sense and hopefully someone can help me...i've been racking my brain out...trying to get it to refresh!!

Thanks
Kay1021 is offline  
Reply With Quote