47 lines
1.5 KiB
Markdown
47 lines
1.5 KiB
Markdown
# Custom 404
|
|
|
|
## JQuery plugin for custom error pages
|
|
|
|
<<<<<<< HEAD
|
|
## 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:
|
|
=======
|
|
### Informazioni
|
|
Un plugin per jQuery che permette di usare pagine di errore personalizzate.
|
|
Da usare quando non si può modificare il file `.htacces` su Apache o quando si usano applicazioni non ASP su un server IIS
|
|
Semplicemente controlla lo stato di una risorsa collegata da un link quando viene richiesta.
|
|
|
|
### Istruzioni
|
|
Aggiungi nel'head:
|
|
>>>>>>> e2ac1143fefb4a651368dc337b44a85ebdd68f81
|
|
|
|
<script src="https://raw.github.com/Rnhmjoj/Custom404/master/jquery.custom404.min.js" type="text/javascript"></script>
|
|
|
|
In a script:
|
|
|
|
$(document).ready(function(){
|
|
$("a#prova").custom404({404: "404page.html"});
|
|
});
|
|
|
|
<<<<<<< HEAD
|
|
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
|
|
=======
|
|
Le opzioni sono `statusCode: url`. Tutti gli status code http vanno bene.
|
|
Se non si seleziona nulla verranno selezionati di default tutti i link della pagina.
|
|
>>>>>>> e2ac1143fefb4a651368dc337b44a85ebdd68f81
|
|
|
|
Dual licensed under the MIT and GPL licenses:
|
|
http://www.opensource.org/licenses/mitlicense.php
|
|
http://www.gnu.org/licenses/gpl.html
|