Catch 404 A jQuery And CSS3 Modal Plugin For Handling Broken Links Elegantly
-

The basic idea behind Catch404 is that you perform an Ajax query for a URL and handle the response provided accordingly, so if its a 404 error, we handle this error specifically. Now because cross-domain 404 handling with jQuery is something that has often been problematic to correctly implement, achieving this isn’t as straight-forward as it should be.So how does this plugin work
Instead, the plugin uses a neat trick using the Yahoo YQL Engine to access the URL for us which returns a HTML string (local URLs don’t require this hack) – thanks to James Padolsey and Christian Heillman for their work in this area. Depending on the contents of this string response, we’re then able to handle the error from the same page the user tried clicking out from. In my plugin, a modal window is used to render the error message and it’s here that you’re able to define whatever message, links or tips that you would like to offer your users regarding the 404. This offers a much better user experience than traditional 404 handling because rather than taking them somewhere with no content, you’ve now got the option to either present them with an alternative mirror or advice through the modal window.
Author:Addy Osmani
Download: from here

Related Posts:
- Rounded Menu with CSS3 and jQuery
- Latest Tweets Tooltips
- ShineTime: jQuery & CSS3 Gallery With Animated Shine Effects
- jQuery fancy Draggable Captcha
- timeAGO a jQuery plugin
GD Star Rating
loading…







3 Responses and Counting...
Site Help New Post – Catch 404 A jQuery And CSS3 Modal Plugin For Handling Broken Links Elegantly. Read it now at http://bit.ly/a1fX3a
Reply
loading...
Post updated August 7, 2010 – Catch 404 A jQuery And CSS3 Modal Plugin For Handling Broken Links Ele…. Read it now at http://bit.ly/a1fX3a
Reply
loading...
[...] This post was mentioned on Twitter by Site Help, Site Help. Site Help said: Site Help New Post – Catch 404 A jQuery And CSS3 Modal Plugin For Handling Broken Links Elegantly. Read it now at http://bit.ly/a1fX3a [...]