Quantcast

Reload parent-page on close

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Reload parent-page on close

TiME-SPLiNTER
Oke some guys asked for a "reload-option" of the parent page (from where the shadowbox was called). Because when you make changes in (for example) a database you have to reload the page which contains the data that you've refreshed with the shadowbox.

It's pritty simple to do that:

shadowbox.js:

after: autoplayMovies: true,       // automatically play movies
add: relOnClose: false, // Reload the parent page after closing shadowbox

after:         onClose: function(){
            toggleVisible();
            toggleTroubleElements(true);
add: if(S.options.relOnClose) {
                                location.reload();
                        }

That's it... if you like now that after close of the shadowbox your parent-page has to reload just set in the rel-atribute of your link the parameter on "true".

example:

href="page.php" rel="shadowbox;width=500;height=500;options={relOnClose:true}">link
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reload parent-page on close

Daniel Banegas
Thak's.

Please, i don't do work this solution, please explain more about this, i am novice user.
MY MAIL IS: dbanegasl@gmail.com
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reload parent-page on close

vincseize
Hi

I was searching to, quite a long time

i think there is a new version of js

Well my solution with shadowbox 3.0.3

find in shadowbox.js:

ab.style.visibility="hidden";

add just after: ab.style.visibility="hidden";location.reload();

cheers

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Reload parent-page on close

Jason Hendrik
truly nice!!!

location.reload();

placed after

wrapper.style.visibility="hidden";

just works!!

...Now say i were to venture into 'specifying' which shadowboxes will reload the parent page...
any insight... or flat-out solutions?
Loading...