hello,

i have an online store and sometimes i have to close it for maintenance. when i close the store the visitors are redirected to a store_closed page where they read that the store "is temporarily closed for maintenance."

i'm looking for a way to automatically redirect the visitors back to the main page once it's available again without having them to refresh the browser.

is this feasible?

thank you,

pcristov

>>is this feasible?
yes. make an ajax request to the "main" page and if you get the "main" page then redirect. If you are not familiar with ajax, refer to the following:
http://w3schools.com/ajax/ajax_intro.asp

On another note, if I went to your site and it's "closed", I would just leave - well, I would actually go to your competitor!

I doubt anybody (except probably the site owner) is just waiting around, refreshing the browser until you open. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.