custom404/README.md
Michele Guerini Rocco e5b2b143ce Fixed layout
2014-01-14 20:28:31 +01:00

31 lines
918 B
Markdown

# 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](http://jsfiddle.net/NY9dH/).
### License
Dual licensed under the MIT and GPL licenses:
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html