howto load a entire page with ajax
Hi lovely Jquery-Community,
i want to load my entire front page with jquery, after a button is hit.
Something like redirect to front-page.
I've already got the handler on the button, that executes
- document.location.href = '/index.php'
Its working, but i'd like to make its behave like(pseudocode):
- $.ajax('/index.php')
or:
- $.load('/index.php')
Is that possible, and if it is, how can i do that?
Thanx for your advices
regards
dennis605