jQuery plugin for custom error pages
 
Go to file
Michele Guerini Rocco e5b2b143ce Fixed layout 2014-01-14 20:28:31 +01:00
.gitignore Commit iniziale 2013-07-20 18:19:58 +02:00
README.md Fixed layout 2014-01-14 20:28:31 +01:00
jquery.custom404.js English Translation 2014-01-14 00:32:09 +01:00
jquery.custom404.min.js English Translation 2014-01-14 00:32:09 +01:00

README.md

Custom 404

JQuery plugin for custom error pages

Info

A jQuery plugin that allows you to use custom error pages. To be used when you can not edit the file .htacces Apache or when using applications on non-ASP on an IIS server. Simply checks if the requested resource is available when you open a link.

Usage

Add in head:

<script src="https://raw.github.com/Rnhmjoj/Custom404/master/jquery.custom404.min.js" type="text/javascript"></script>

In a script:

$(document).ready(function(){
	$("a#test").custom404({404: "404page.html"});
});

Options are statusCode: url. All the http status codes are fine. If you do not select anything by default all the links on the page will be used.

You can find an example here.

License

Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html