Hi Irrlicht! First I should mention that instead of reloading the
whole page, it would be much more elegant to use AJAX to update
things. However, that's just my two cents.
I also have a question: why have the greybox close automatically?
Anyway, here's my thots on your question. There are two solutions:
1, some GB functions have a callback function as a parameter. This
function is called when the greybox is closed. You can use this to
refresh your page. (eg) GB_showCenter("my greybox", "http://
www.nirdvana.com", 400, 600, function() { top.location.reload
(true); });
2, you can take your existing code and reload with that. (eg)
javascript: window.setTimeout('top.location.reload(true)', 3000);
Hope that helps!
Tyler Style
http://www.malthusian-solutions.com
On Dec 19, 3:17 am, Irrlicht <[email protected]> wrote:
> Hi there,
>
> i have a question, i need to refresh the mainpage when my greybox
> close.
> Alternate i can take a funktion to load a new url from the greybox in
> the Main window.
>
> theres my problem:
> ---------------------------
> i made a small calender, written in php.
> When i click on any day there opens an greyboxwindow to make entrys
> oder delete Entrys on these day.
> I make my changes on the day, the greybox close automaticaly with
> javascript: window.setTimeout('parent.parent.GB_hide()', 3000);
>
> Now the Calender should be reload/refresh, and there is the problem.
>
> can anyone give me an hint?
>
> Irrlicht
>
> (sorry for my bad english)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GreyBox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/greybox?hl=en
-~----------~----~----~----~------~----~------~--~---