Je ne vois pas pourquoi cela ne fonctionne pas.
Merci pour l'aide donné (voir ligne 6).
Au préalable j'ai afficher un tableau comme suit.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 $("table tr").on("click",function () { var identifiant = $(this).find('td:first').html(); var clickedCell=$(event.target); var compar = clickedCell.text(); if(compar == 'Effacer' && identifiant != null){ // Or compar est égale à Effacer ???? et indentifiant est un entier. alert("dans traitement Effacer"); if (confirm('Voulez vous effacer la ligne choisie')) { $.ajax({ url : 'supprimeractivite', data : { order_number : identifiant }, success : function(responseText) { $('#resultat').text(responseText); $("#resultat").html("<p>La suppression a ete effectuer avec succes ! </p><br><p>Vous allez etre rediriger sur la liste des activite"); setTimeout(function() {$('#resultat').fadeOut();document.location.href = 'indexdate.jsp'}, 3000); } }); } }
;
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 <tr> <td width="5%"><%out.println(rowsselected.getString("order_number"));%></td> <td width="25%"><%out.println(rowsselected.getString("conducteur"));%></td> <td width="20%"><%out.println(rowsselected.getString("lieudepart"));%></td> <td width="20%"><%out.println(rowsselected.getString("lieuarrive"));%></td> <td width="5%"><%out.println(rowsselected.getString("participation"));%></td> <td width="10%"><%out.println(datedepart);%></td> <td width="10%"><%out.println(datearrive);%></td> <td width="5%"><%out.println("Effacer");%></td> <td width="5%"><%out.println("Mise a jour");%></td> </tr>
OK, j'ai compris. Ca fonctionne sans
mais avec
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <td width="5%"><%out.println("Effacer");%></td> <td width="5%"><%out.println("Mise a jour");%></td>
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 <td>Effacer</td> <td>Mise a jour</td>
Partager