AJAX seach on 404 error pages

01 August 2005   0 comments   Web development

http://www.invms.co.uk

Mind That Age!

This blog post is 12 years old! Most likely, its content is outdated. Especially if it's technical.

Powered by Fusion×

This might not be new but I haven't seen it before. If you come across a page that doesn't exist on www.invms.co.uk it will show you a nice error page like so many other websites do, except that the IMS 404 error page is a bit more advanced. First of all it deconstructs the requested path and prepares that for a site search. This "suggest searchterm" is then also used to make an AJAX search (using tw-sack) asyncronously inside the browser but then only on the title of the various pages it can find.

The advantage of doing an AJAX search instead of a server-side search is that the page loads faster. First it loads the important message ("Page not found"), then as an added bonus it shows some additional help. It also means that all those portscanners and other phishers (who don't use webbrowsers to do their scanning) don't cause lots of excessive searches on the server.

To test this, go to a page that doesn't exist like http://www.invms.co.uk/Literature/foobar or http://www.invms.co.uk/IMS-Select-Funds/IMS-Select-Income-FundXXX

PS. Investment Manager Selection Limited is a client of my company Fry-IT

Follow @peterbe on Twitter

Comments

Thank you for posting a comment

Your email will never ever be published


Related posts

Previous:
Just Oracle and IBM? 31 July 2005
Next:
Jealous of Google stemming 04 August 2005
Related by Keyword:
Using Lovefield as an AJAX proxy maybe 30 September 2015
AJAX or not 22 December 2014
Lazy loading below the fold 26 October 2013
"Did you mean this domain?" Auto-correction for the browser's address bar 05 April 2013
XML header and childNodes 26 July 2007
Related by Text:
Visual speed comparison of AngularJS and ReactJS 20 July 2015
AngularJS $q notify and resolve as a local GET proxy 18 April 2015
Local NodeJS development environment with Nginx 01 September 2010
Using Fanout.io in Django 13 December 2016
AJAX accelerated web widgets 23 June 2005