Bonjour,

J'ai un probleme de syntaxe je crois j'arrive pas à faire marcher le onclick de ce bouton :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
<input class='excel' type='button' value="Export to Excel " onclick ="location.href= ${htm};">
je sais pas ou se trouve l'erreur !
Je suis coté jsp ,j'utilise le $(html) pour ecrire un string sui se trouve coté java

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
htm = "reqxls?val=" +condition1+ "&ch=" +condition2+ "&zone=" +condition3+ "&region=" +condition4
				+ "&subregion=" +condition5+"&division=" + condition6  + "&mmdn="+ cndmn+ "&mmdp="+ cndmp 
				+ "&boxcountry=" + condition7 + "&boxlocation=" + condition8 + "&boxzone=" + condition9
				+ "&boxregion=" + condition10 + "&boxsub=" + condition11 + "&boxdivision=" + condition12
				+ "&boxdistrb=" + condition13 + "&boxplant=" + condition14 + "&boxmarket=" + condition15 
				+ "&boxother=" + condition16 + "&boxhead=" + condition17 + "&boxcoord=" + condition18 
				+ "&boxmmdloc=" + condition19 + "&boxmmdcontact2=" + condition20 + "&boxmmdcontact1=" + condition21;
qlq'un pourrait m'aider svp