Probleme avec OnMouseOver
JC
-
JC -
JC -
Bonjour à tous!
Je rencontre une difficulté apperement toute windosiennes car mon prog fonctionne bien sous unix... mon soucis est le suivant :
il manque arpès l'utilisation de onmouseover les arguments que je souhaite passer... je ne comprens pas pourquoi.
Voici le code de mon programme :
<?xml version="1.0" ?>
<html:html locale="true">
<link rel="stylesheet" href="sam.css"/>
</br>
</br>
<tr>
<center>
<h1> CHOIX DE LA PLAGE TEMPORELLE POUR LA VISUALISATION DES MESSAGES</h1>
</center>
</tr>
</br>
</br>
</br>
<head>
<center>
<script language="JavaScript" src="date-picker.js"></script>
<script language="JavaScript">
function convertTime(date){
d = new Date(date.toString());
return d.getTime();
}
function myfunc(){
document.form2.xpath.value="//message[header/PROTOCOL_NAME/@value='"+document.forms[0].protocol.value+"']";// + convertTime(document.filtre.date1.value) + " > " + convertTime(document.filtre.date2.value) ;
alert("val=" + document.form2.xpath.value);
}
</script>
</center>
</head>
<body>
<center>
<form name="filtre" method="Get" action="http://10.1.2.9:8080/exist/xmldb/db/" enctype="application/x-www-form-urlencoded">
<table border='0'>
<tr>
<td align='right'>Protocol</td>
<td>
<SELECT type='text' name="protocol" value="titi">
<option>PHOEBUS</option>
<option>SUPERVISION</option>
</SELECT>
</td>
</tr>
<tr>
<td align='right'>Période du</td>
<td>
<input type='text' name="date1" size='18'/><a href="javascript:show_calendar('filtre.date1',null,null,'DD/MM/YYYY');"><img src="image/show-calendar.jpg" width='24' height='22' border='0'/></a>
</td>
</tr>
<tr>
<td align='right'>au</td>
<td>
<input type='text' name="date2" size='18'/><a href="javascript:show_calendar('filtre.date2',null,null,'DD/MM/YYYY');"><img src="image/show-calendar.jpg" width='24' height='22' border='0'/></a>
</td>
</tr>
</table>
</form>
<form name="form2" method="Get" action="http://10.1.2.9:8080/exist/xmldb/db/" enctype="application/x-www-form-urlencoded">
<input type='hidden' name='xpath' value=''/>
<INPUT type='submit' value="recherche" src='img/rechercher.jpg' onMouseOver="myfunc()" />
</form>
</center>
</body>
</html:html>
Un grand merci par avance à qui pourra m'aider.
Je rencontre une difficulté apperement toute windosiennes car mon prog fonctionne bien sous unix... mon soucis est le suivant :
il manque arpès l'utilisation de onmouseover les arguments que je souhaite passer... je ne comprens pas pourquoi.
Voici le code de mon programme :
<?xml version="1.0" ?>
<html:html locale="true">
<link rel="stylesheet" href="sam.css"/>
</br>
</br>
<tr>
<center>
<h1> CHOIX DE LA PLAGE TEMPORELLE POUR LA VISUALISATION DES MESSAGES</h1>
</center>
</tr>
</br>
</br>
</br>
<head>
<center>
<script language="JavaScript" src="date-picker.js"></script>
<script language="JavaScript">
function convertTime(date){
d = new Date(date.toString());
return d.getTime();
}
function myfunc(){
document.form2.xpath.value="//message[header/PROTOCOL_NAME/@value='"+document.forms[0].protocol.value+"']";// + convertTime(document.filtre.date1.value) + " > " + convertTime(document.filtre.date2.value) ;
alert("val=" + document.form2.xpath.value);
}
</script>
</center>
</head>
<body>
<center>
<form name="filtre" method="Get" action="http://10.1.2.9:8080/exist/xmldb/db/" enctype="application/x-www-form-urlencoded">
<table border='0'>
<tr>
<td align='right'>Protocol</td>
<td>
<SELECT type='text' name="protocol" value="titi">
<option>PHOEBUS</option>
<option>SUPERVISION</option>
</SELECT>
</td>
</tr>
<tr>
<td align='right'>Période du</td>
<td>
<input type='text' name="date1" size='18'/><a href="javascript:show_calendar('filtre.date1',null,null,'DD/MM/YYYY');"><img src="image/show-calendar.jpg" width='24' height='22' border='0'/></a>
</td>
</tr>
<tr>
<td align='right'>au</td>
<td>
<input type='text' name="date2" size='18'/><a href="javascript:show_calendar('filtre.date2',null,null,'DD/MM/YYYY');"><img src="image/show-calendar.jpg" width='24' height='22' border='0'/></a>
</td>
</tr>
</table>
</form>
<form name="form2" method="Get" action="http://10.1.2.9:8080/exist/xmldb/db/" enctype="application/x-www-form-urlencoded">
<input type='hidden' name='xpath' value=''/>
<INPUT type='submit' value="recherche" src='img/rechercher.jpg' onMouseOver="myfunc()" />
</form>
</center>
</body>
</html:html>
Un grand merci par avance à qui pourra m'aider.