Exécution d'une fonction Javascript à part d'un champ sx:autocompleter
Bonjour à tous,
Comme vous pouvez le voir sur la page jsp ci-dessous, la fonction javascript test() ne s'exécute pas,
Quelqu'un aurait-il un idée de ce problème :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript" type="text/javascript">
function test() {
alert('test');
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<sx:head cache="false" compressed="false" parseContent="false" />
</head>
<body>
<s:form method="post" name="form" action="$create_bl">
<sx:autocompleter value="" list="mylist" autoComplete="true"
key="client" onfocus="javascript:this.value=''" onchange="test()"
labelposition="left" />
</s:form>
</body>
</html> |