This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <!--[if lte IE 6]> <html class="no-js ie6 ie67 ie678" lang="fr"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js ie7 ie67 ie678" lang="fr"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js ie8 ie678" lang="fr"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="fr"> <!--<![endif]--> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=10"> | |
| <title></title> | |
| <meta name="viewport" content="initial-scale=1.0"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Besoin dans le pom --> | |
| <dependency> | |
| <groupId>org.apache.struts</groupId> | |
| <artifactId>struts2-json-plugin</artifactId> | |
| <version>2.1.8</version> | |
| </dependency> | |
| 1- Envois d'un flux, genre un fichier ou une image (mais mode Ajax !!!) | |
| @Action(value = "/charger", results = { | |
| @Result(name = "succes", type = "stream", params = { "contentType", "application/octet-stream", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // From: http://www.siteduzero.com/informatique/tutoriels/bootstrap-de-twitter-un-kit-css-et-plus/formulaires | |
| <div class="span5"> | |
| <form class="form-inline well"> | |
| <div class="control-group"> | |
| <div class="controls"> | |
| <input type="text" placeholder="Texte ici"> | |
| <button type="submit" class="btn btn-primary pull-right">Envoyer</button> | |
| <div class="alert alert-error hide"> | |
| <h4 class="alert-heading">Erreur !</h4> | |
| Vous devez entrer au moins 4 caractères ! </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var scrolling = function(){ | |
| var speed = 1000; | |
| jQuery('a[href^="#"]').bind('click',function(){ | |
| var id = jQuery(this).attr('href'); | |
| if(id == '#') | |
| goTo('body'); | |
| else | |
| goTo(id); | |
| return(false); | |
| void(0); |
NewerOlder