Need help with AJAX please!
Hi,
I have a problem regarding AJAX that I really need solving - any help would be really much appreciated!
Problem:
Currently, when a user enters the wrong URL on my site, they just get my standard custom 404 page that is static, and just says that the file couldn't be found. I however need it to display the URL that the client entered that caused the 404, and, while I could do this really easily with a server side script, heres the catch. I need it to be done on the browser side.
So I need a piece of AJAX JS that sits in my custom 404 page, and when the page is called, is executed on the client, asks my server what page caused the 404, and displays the URL.
I hope it's possible! Thanks in advance for any help given!
|