I want to refresh a full page with ajax, after clicking on some initial site link.
Example:
We have opened site http://www.love.com, it has a link to http://www.love.com/somepage.html
After we click on this link, full page must be refreshed with ajax (replaced active page by somepage.html)
And there is must be some fadeIn/Out effect, when the page is replaced.
How to?
maybe some plugin can do this, any link?
Well a full-page request kind of contradict the purpose of AJAX,
but if you insist 🙂
you can use a huge div as a placeholder of your page, and use jQuery Load/Ajax
the div would look like this
and the function that you can use
either manually add the function to your link
or use jQuery selector to iterate every anchor