Bonjour tout le monde!!!
J'ai un probleme au niveau d'une page tapestry , chaque fois ke j'intégre une boucle dans mon code javascript l'exécution est bloquée
ma page all.html est la suivante avec une boucle for vide pou tester au niveau du code javascript :
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<head>
<title>Login</title>
</head>
<script type='text/javascript' src='/BlankApplicationTapestryDWR/dwr/interface/UserDWR.js'></script>
<script type='text/javascript' src='/BlankApplicationTapestryDWR/dwr/engine.js'></script>
<script type='text/javascript' src='/BlankApplicationTapestryDWR/dwr/util.js'></script>
<script>
function detailsClicked() {
if ($('detailsButton').value=='Show Details') {
// Show the 'loading' message
DWRUtil.useLoadingMessage();
UserDWR.getAllUserFromSession(getUserFromSessionCallback);
}
else {
$('detailsButton').value = 'Show Details';
$('tableContainer').style.display='none';
$('detailsButton').onClick='showDetailsClicked()';
}
}
function getUserFromSessionCallback (result) {
for(i=1;3>i;i++)
{
}
$('idContainer').innerHTML = result[1].idUser;
$('loginContainer').innerHTML = result[1].loginUser;
$('passwordContainer').innerHTML = result[1].passwordUser;
$('detailsButton').value='Hide Details';
$('tableContainer').style.display='block';
}
</script>
<body>
<p> Liste des utilisateurs du systeme </p>
<input type='button' id='detailsButton' value='Show Details' onclick='detailsClicked();'/>
<br/><br/>
<table id='tableContainer' style="display:none;">
<tr>
<td style="font-weight:bold;">Id: </td>
<td style="font-weight:bold;">Login: </td>
<td style="font-weight:bold;">Password: </td>
</tr>
<tr>
<td id="idContainer"/>
<td id="loginContainer"/>
<td id="passwordContainer"/>
</tr>
</table>
<br/>
</body>
</html>
je vs remercie d'avance pour toute proposition ou remarque