TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-26-2009, 02:07 AM   #1 (permalink)
The Contributor
 
Join Date: May 2008
Posts: 35
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
Old 06-26-2009, 08:57 AM   #2 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 836
Thanks: 31
sketchMedia is on a distinguished road
Default

Would:
javascript Code:
window.location.reload(false);
be of any use?
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
Kay1021 (06-28-2009)
Old 06-28-2009, 06:58 PM   #3 (permalink)
The Contributor
 
Join Date: May 2008
Posts: 35
Thanks: 5
Kay1021 is on a distinguished road
Default

yes that worked perfectly thanks!
Kay1021 is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a gallery class Tanax Advanced PHP Programming 22 06-23-2009 11:36 PM
Lightbox effect on page load aghahamidgol Javascript, AJAX, E4X 3 06-08-2009 01:36 PM
Updating list without page refresh Jmz Javascript, AJAX, E4X 3 05-22-2008 02:23 PM


All times are GMT. The time now is 10:48 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design