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 13 years old! Most likely, its content is outdated. Especially if it's technical.

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

Comments

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:
jQuery and Highslide JS 08 January 2008
I'm back! Peterbe.com has been renewed 05 June 2005
Anti-McCain propaganda videos 12 August 2008
Ever wondered how much $87 Billion is? 04 November 2003
Guake, not Yakuake or Yeahconsole 23 January 2010