Bien sûr !
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Effet scriptaculous avec contentType="application/xhtml+xml"</title>
<script type="text/javascript" src="scriptaculous/prototype.js" language="JavaScript"></script>
<script type="text/javascript" src="scriptaculous/scriptaculous.js" language="JavaScript"></script>
</head>
<body>
<a onclick="$(this).blindUp({ duration: 2 })">
Click here if you want this to go slooooow.
</a>
</body>
</html> |
Je change seulement le contentType pour :
1 2
| <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%> |
et là l'effet scriptaculous fonctionne.
Cependant dans des pages html où je déclare le contentType comme ceci :
<meta http-equiv="Content-Type" content="application/xhtml+xml" />
l'effet est pris en compte.
Partager