IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JavaScript Discussion :

submit ne marche pas sous FF


Sujet :

JavaScript

  1. #1
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut submit ne marche pas sous FF
    bonjour,

    J'ai un script qui ne marche pas sous FF mais qui marche parfaitement sous IE.

    code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input style="width:20px;" type="checkbox" id="allorders" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/>
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <img src="../files/images/bouton/cancel_sppol.gif" onclick="document.forms.ClientCancelOrderForm.submit();" style="cursor:pointer;" />

    sous ie ça passe mais sous FF j'ai tj l'erreur ClientCancelOrderForm has no properties.

    J'ai donc remplacé par :

    mais ça ne fonctionne toujours pas.

    merci

  2. #2
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Bonjour,
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    onclick="document.forms['ClientCancelOrderForm'].submit();"
    Si ça ne fonctionne pas, c'est que tu as des erreurs dans la définition de ton <form> (appelé d'un élément du <form>, aurait dû fonctionner ...)

    A+

  3. #3
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    dans ce cas pourquoi ça marche sous IE ?

  4. #4
    Rédacteur

    Avatar de Bovino
    Homme Profil pro
    Développeur Web
    Inscrit en
    Juin 2008
    Messages
    23 647
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Gironde (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juin 2008
    Messages : 23 647
    Points : 91 220
    Points
    91 220
    Billets dans le blog
    20
    Par défaut
    Montre nous le code du formulaire, on mettra moins de temps qu'à essayer de deviner

  5. #5
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
     <%String actionParam3 ="/web/cancelDisplayOrders.do?from=tradingfuture&amp;" + urlParam;%>
     
    <html:form  action="<%= actionParam3%>" method="post">
    <table width="<%if (webbean.isAfficheCheckbox()) {%>780<%}else{%>750<%}%>" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_type")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("tradingfut_security")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("portfolio_qte")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_type")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_seuil")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_limite")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_state")%></td>
     
    				       <%boolean spol = CalypsoServices.getOrderBookStatus();%>								 
    						<logic:present name="orderBean" property="list">						  
    				    	  <logic:notEmpty name="orderBean" property="list">
    				        <% if (webbean.isAfficheCheckbox()) {%><td nowrap style="width:30px;" align="left">&nbsp;<%=bundle.getString("preorder_cancel_all")%><BR>&nbsp;<input style="width:20px;" type="checkbox" id="allorders" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/></td><%}%>
     
    .....
     
     
     <tr style="height:15px;">							
    					<td class="tabtexte <%if (!webbean.isAfficheCheckbox()) {%>btgris<%}%>" colspan="9" style="text-align:right;width:750px;">
    						<img style="valign:bottom;"src="../files/images/commun/fleche_y.gif" width="15" height="13" alt=""/>						
    						&nbsp;<a  style="text-decoration:none;" href="../web/clientOrder.do?<%=urlParam%>">
    						<span style="font-weight:bold;text-decoration:none;font-size:11px;"><%=bundle.getString("tradingfut_preordre_link")%></span></a>
    					</td>
    				</tr>			 
    				........
    </html:form>	
     </tr>

  6. #6
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 640
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 640
    Points : 66 669
    Points
    66 669
    Billets dans le blog
    1
    Par défaut
    on aurait préfére le html généré

    pas de bouton submit ?

  7. #7
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    Bonjour,

    Voici le html généré :

    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    				<table width="780" border="0" cellspacing="0" cellpadding="0">						
    				 <tr>
    					<td class="sectionTitle">
    						<img src="../files/images/commun/fleche_news_orange.gif" alt="" />&nbsp;Pr&eacute;-ordres <i>(cliquer pour actualiser)</i>
    						&nbsp;<a style="text-decoration:none;" href="../web/dayTrading.do?loc=fr_FR&amp;underlyingID=4652550">
    							<img src="../files/images/commun/actualiser_ico.gif" alt="" />
    						</a>
    						<BR><img src="../files/images/commun/tiret4.jpg" width="750" height="1" alt=""/><BR>					
    					</td>							
    				 </tr>			
    				 <tr style="height:5px;"><td></td></tr>
     
     
     
    				<tr><td id="dataOrders">
     
     
     
    		<form id="ClientCancelOrderForm" method="post" action="/click/web/cancelDisplayOrders.do?loc=fr_FR">
    				<table width="750" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback">Pr&eacute;-ordre</td>
    						<td class="blgris tabtitleback">Code</td>
    						<td class="blgris tabtitleback">Type</td>
     
    						<td class="blgris tabtitleback">S&eacute;curit&eacute;</td>
    				        <td class="blgris tabtitleback">Quantit&eacute;</td>
    				        <td class="blgris tabtitleback">Type d'ordre</td>
    				        <td class="blgris tabtitleback">Seuil</td>
    				        <td class="blgris tabtitleback">Limite</td>
    				        <td class="blgris tabtitleback">Etat</td>
     
    				        	<SCRIPT LANGUAGE="JavaScript">
    								<!-- Begin
    										var checkflag = "false";								
    										function check(field) {
    														alert("coucou");							
    										if(document.getElementById("allorders").checked==false){											
    											checkflag = "true";
    										}																				
    										if (checkflag == "false") {	
    											if (field.length)
    												for (i = 0; i < field.length; i++) 
     												 field[i].checked = true;
    											else
     												 field.checked = true;
      										checkflag = "true";
      										return "Tout décocher"; }
    										else {
    											if (field.length)
      												for (i = 0; i < field.length; i++) {
      													field[i].checked = false; }
      											else
     												 field.checked = false;
      										checkflag = "false";
      										return "Tout cocher"; }
    										}
    								//  End -->
     
    					</script>	
     
     
     
     
    						<tr style="height:25px;">							
    							<td class="tabtexte btgris brgris blgris" colspan="9" style="text-align:center;">
    								Aucun ordre en cours sur ce future
    							</td>
    						</tr>
     
     
    				</form>	
     
     
    				  <tr style="height:15px;">							
    					<td class="tabtexte btgris" colspan="9" style="text-align:right;width:750px;">
    						<img style="valign:bottom;"src="../files/images/commun/fleche_y.gif" width="15" height="13" alt=""/>						
    						&nbsp;<a  style="text-decoration:none;" href="../web/clientOrder.do?loc=fr_FR">
     
    						<span style="font-weight:bold;text-decoration:none;font-size:11px;">Tous les pr&eacute;-ordres</span></a>
    					</td>
    				</tr>			 
    				 </table>	
    				 </td>							
    				</tr>				
    		</table>

  8. #8
    Rédacteur/Modérateur

    Avatar de SpaceFrog
    Homme Profil pro
    Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Inscrit en
    Mars 2002
    Messages
    39 640
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 74
    Localisation : Royaume-Uni

    Informations professionnelles :
    Activité : Développeur Web Php Mysql Html Javascript CSS Apache - Intégrateur - Bidouilleur SharePoint
    Secteur : Industrie

    Informations forums :
    Inscription : Mars 2002
    Messages : 39 640
    Points : 66 669
    Points
    66 669
    Billets dans le blog
    1
    Par défaut
    un script au beau milieu du form

    sinon c'est moi ou il n'y a pas d'inputs dans ce form ???

  9. #9
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    ... et l'imbrication du form dans la table n'est pas bonne : ton form commence dans un <td> et se termine entre deux <tr> de la table contenu dans ce <td>
    Il faut un minimum de cohérence dans la structure, pour que le nav s'y retrouve

    A+

  10. #10
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    ok merci je vais corriger mais quand je fais un view source sous IE j'ai ceci, le html généré que j'ai montré auparavant est celui généré sous FF:

    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
     
    		<form id="ClientCancelOrderForm" method="post" action="/click/web/cancelDisplayOrders.do?loc=fr_FR">
    				<table width="780" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback">Pr&eacute;-ordre</td>
    						<td class="blgris tabtitleback">Code</td>
    						<td class="blgris tabtitleback">Type</td>
    						<td class="blgris tabtitleback">S&eacute;curit&eacute;</td>
    				        <td class="blgris tabtitleback">Quantit&eacute;</td>
    				        <td class="blgris tabtitleback">Type d'ordre</td>
    				        <td class="blgris tabtitleback">Seuil</td>
    				        <td class="blgris tabtitleback">Limite</td>
    				        <td class="blgris tabtitleback">Etat</td>
    				        	<SCRIPT LANGUAGE="JavaScript">
    								<!-- Begin
    										var checkflag = "false";								
    										function check(field) {
    														alert("coucou");							
    										if(document.getElementById("allorders").checked==false){											
    											checkflag = "true";
    										}																				
    										if (checkflag == "false") {	
    											if (field.length)
    												for (i = 0; i < field.length; i++) 
     												 field[i].checked = true;
    											else
     												 field.checked = true;
      										checkflag = "true";
      										return "Tout décocher"; }
    										else {
    											if (field.length)
      												for (i = 0; i < field.length; i++) {
      													field[i].checked = false; }
      											else
     												 field.checked = false;
      										checkflag = "false";
      										return "Tout cocher"; }
    										}
    								//  End -->
     
    					</script>	
     
     
     
    				          <td nowrap style="width:30px;" align="left">&nbsp;999<BR>&nbsp;<input style="width:20px;" type="checkbox" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/></td>		        
    				     </tr>				     			     
     
     
     
     
    								<tr class="applat" height="20" align="center"> 
    								   <td class="blgris">1271671</td>
    								   <td class="blgris"><a class="linkTurboJour" href="../web/productZoomSpot.do?loc=fr_FR&amp;productId=4672326&amp;pc=3" >4672326</a></td>
    						           <td class="blgris">		
     
    						               <a href="../web/descriptionproduct.do?loc=fr_FR&amp;idmenu=3&amp;pc=3&amp;pt=ETPA"><img src="../files/images/click/picto_Hi-vvsmall_ETPA.gif" width="15" height="15" align="middle" alt="Turbo Down" /></a>						                   		 			
     
    								   </td>						         	
    						         <!--securite-->
    						         <td class="blgris">4*108,00&nbsp;pts</td>
     
    								<!--quantité restante-->
    						         <td class="blgris">30</td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         ACL
     
    						         </td>					         
     
    						          <td nowrap class="blgris ">
    						          	--
     
    						          </td>
    						          <!--limite-->
    						         <td class="blgris">
    						         	0,20
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	En cours
    						         </td>
     
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="1271671" /></td>										                
     
     
    						       </tr>
     
     
     
    								<tr  height="20" align="center"> 
    								   <td class="blgris">1271723</td>
    								   <td class="blgris"><a class="linkTurboJour" href="../web/productZoomSpot.do?loc=fr_FR&amp;productId=4672325&amp;pc=3" >4672325</a></td>
    						           <td class="blgris">		
     
    						               <a href="../web/descriptionproduct.do?loc=fr_FR&amp;idmenu=3&amp;pc=3&amp;pt=ETPA"><img src="../files/images/click/picto_Hi-vvsmall_ETPA.gif" width="15" height="15" align="middle" alt="Turbo Down" /></a>						                   		 			
     
    								   </td>						         	
    						         <!--securite-->
    						         <td class="blgris">4*123,00&nbsp;pts</td>
     
    								<!--quantité restante-->
    						         <td class="blgris">60</td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         ACL
     
    						         </td>					         
     
    						          <td nowrap class="blgris ">
    						          	--
     
    						          </td>
    						          <!--limite-->
    						         <td class="blgris">
    						         	0,30
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	En cours
    						         </td>
     
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="1271723" /></td>										                
     
     
    						       </tr>
     
     
    					<tr style="height:25px;">	
    							<td class="btgris" colspan="9">&nbsp;</td>						
    							<td width="26">&nbsp;&nbsp;<img src="../files/images/bouton/cancel_sppol.gif" onclick="document.forms['ClientCancelOrderForm'].submit();" style="cursor:pointer;" title="Annuler"/></td>
    					</tr>
     
     
     
     
     
    				</form>

  11. #11
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    pardon, voici le html généré sous FF :
    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    <form id="ClientCancelOrderForm" method="post" action="/click/web/cancelDisplayOrders.do?loc=fr_FR">
    				<table width="780" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback">Pr&eacute;-ordre</td>
    						<td class="blgris tabtitleback">Code</td>
    						<td class="blgris tabtitleback">Type</td>
     
    						<td class="blgris tabtitleback">S&eacute;curit&eacute;</td>
    				        <td class="blgris tabtitleback">Quantit&eacute;</td>
    				        <td class="blgris tabtitleback">Type d'ordre</td>
    				        <td class="blgris tabtitleback">Seuil</td>
    				        <td class="blgris tabtitleback">Limite</td>
    				        <td class="blgris tabtitleback">Etat</td>
     
    				        	<SCRIPT LANGUAGE="JavaScript">
    								<!-- Begin
    										var checkflag = "false";								
    										function check(field) {
    														alert("coucou");							
    										if(document.getElementById("allorders").checked==false){											
    											checkflag = "true";
    										}																				
    										if (checkflag == "false") {	
    											if (field.length)
    												for (i = 0; i < field.length; i++) 
     												 field[i].checked = true;
    											else
     												 field.checked = true;
      										checkflag = "true";
      										return "Tout décocher"; }
    										else {
    											if (field.length)
      												for (i = 0; i < field.length; i++) {
      													field[i].checked = false; }
      											else
     												 field.checked = false;
      										checkflag = "false";
      										return "Tout cocher"; }
    										}
    								//  End -->
     
    					</script>	
     
     
     
    				          <td nowrap style="width:30px;" align="left">&nbsp;999<BR>&nbsp;<input style="width:20px;" type="checkbox" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/></td>		        
    				     </tr>				     			     
     
     
     
     
    								<tr class="applat" height="20" align="center"> 
    								   <td class="blgris">1271671</td>
    								   <td class="blgris"><a class="linkTurboJour" href="../web/productZoomSpot.do?loc=fr_FR&amp;productId=4672326&amp;pc=3" >4672326</a></td>
    						           <td class="blgris">		
     
    						               <a href="../web/descriptionproduct.do?loc=fr_FR&amp;idmenu=3&amp;pc=3&amp;pt=ETPA"><img src="../files/images/click/picto_Hi-vvsmall_ETPA.gif" width="15" height="15" align="middle" alt="Turbo Down" /></a>						                   		 			
     
    								   </td>						         	
    						         <!--securite-->
     
    						         <td class="blgris">4 108,00&nbsp;pts</td>
     
    								<!--quantité restante-->
    						         <td class="blgris">30</td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         ACL
     
    						         </td>					         
     
    						          <td nowrap class="blgris ">
     
    						          	--
     
    						          </td>
    						          <!--limite-->
    						         <td class="blgris">
    						         	0,20
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	En cours
    						         </td>
     
     
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="1271671" /></td>										                
     
     
    						       </tr>
     
     
     
    								<tr  height="20" align="center"> 
    								   <td class="blgris">1271723</td>
    								   <td class="blgris"><a class="linkTurboJour" href="../web/productZoomSpot.do?loc=fr_FR&amp;productId=4672325&amp;pc=3" >4672325</a></td>
    						           <td class="blgris">		
     
    						               <a href="../web/descriptionproduct.do?loc=fr_FR&amp;idmenu=3&amp;pc=3&amp;pt=ETPA"><img src="../files/images/click/picto_Hi-vvsmall_ETPA.gif" width="15" height="15" align="middle" alt="Turbo Down" /></a>						                   		 			
     
    								   </td>						         	
    						         <!--securite-->
    						         <td class="blgris">4 123,00&nbsp;pts</td>
     
     
    								<!--quantité restante-->
    						         <td class="blgris">60</td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         ACL
     
    						         </td>					         
     
    						          <td nowrap class="blgris ">
    						          	--
     
    						          </td>
    						          <!--limite-->
     
    						         <td class="blgris">
    						         	0,30
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	En cours
    						         </td>
     
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="1271723" /></td>										                
     
     
    						       </tr>
     
     
    					<tr style="height:25px;">	
    							<td class="btgris" colspan="9">&nbsp;</td>						
    							<td width="26">&nbsp;&nbsp;<img src="../files/images/bouton/cancel_sppol.gif" onclick="document.forms['ClientCancelOrderForm'].submit();" style="cursor:pointer;" title="Annuler"/></td>
     
    					</tr>
     
     
     
     
     
    				</form>
    et voici mon input:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="1271723" />

  12. #12
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Tu as essayé de remplacer
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <img src="../files/images/bouton/cancel_sppol.gif" onclick="document.forms['ClientCancelOrderForm'].submit();" style="cursor:pointer;" title="Annuler"/>
    par
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <input type="image" src="../files/images/bouton/cancel_sppol.gif" style="cursor:pointer;" title="Annuler"/>
    Au moins, tu auras un bouton submit plus standard (un type="image" fonctionne comme un type="submit")

    A+

  13. #13
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    oui je viens d'essayer, ça marche sous IE mais pas sous FF, il me dit checksubmit is not defined

  14. #14
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Citation Envoyé par gloglo Voir le message
    oui je viens d'essayer, ça marche sous IE mais pas sous FF, il me dit checksubmit is not defined
    Bah moi non plus je le vois pas, ton checksubmit
    C'est quoi ?

    A+

  15. #15
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    sorry

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <tr style="height:25px;">	
    							<td class="btgris" colspan="9">&nbsp;</td>						
    							<td width="26">&nbsp;&nbsp;<input type="image" src="../files/images/bouton/cancel_sppol.gif" style="cursor:pointer;" title="Annuler"/></td>
     
    					</tr>

  16. #16
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Pas mieux : toujours pas de checksubmit ...

  17. #17
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    je ne comprend pas

  18. #18
    Expert éminent sénior

    Homme Profil pro
    Inscrit en
    Janvier 2007
    Messages
    13 474
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations professionnelles :
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2007
    Messages : 13 474
    Points : 36 571
    Points
    36 571
    Par défaut
    Si le message est "checksubmit is not defined" c'est que IE cherche un objet dont l'identifiant est "checksubmit".
    Où est la définition de cet objet dans ton code ?
    Où est-il utilisé ?
    Pour l'instant le message ne correspond pas à ce qu'on connait de ton code ...

    A+

  19. #19
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    je seche completement.
    est ce que ça peut etre du au fait que cette partie est rafrachie en ajax ?

  20. #20
    Membre habitué
    Inscrit en
    Mai 2006
    Messages
    525
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 525
    Points : 150
    Points
    150
    Par défaut
    Ceci est le code de mon tableau :
    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    <SCRIPT LANGUAGE="JavaScript">
    								<!-- Begin
    										var checkflag = "false";	
    										function check(field) {
     
    										if(document.getElementById("allorders").checked==false){											
    											checkflag = "true";
    										}																				
    										if (checkflag == "false") {	
    											if (field.length)
    												for (i = 0; i < field.length; i++) 
     												 field[i].checked = true;
    											else
     												 field.checked = true;
      										checkflag = "true";
      										return "Tout décocher"; }
    										else {
    											if (field.length)
      												for (i = 0; i < field.length; i++) {
      													field[i].checked = false; }
      											else
     												 field.checked = false;
      										checkflag = "false";
      										return "Tout cocher"; }
    										}
    								//  End -->
     
    					</script>	
    <bean:define id="webbean" name="webbean" scope="request" type="com.clickoptions.web.bean.tradingfut.TradingFutureBean" />
    <bean:define id="orderBean" name="webbean" property="orderBean" type="com.clickoptions.web.bean.portfolio.OrderOperationBean" />
     
    				<table width="780" border="0" cellspacing="0" cellpadding="0">						
    				 <tr>
    					<td class="sectionTitle">
    						<img src="../files/images/commun/fleche_news_orange.gif" alt="" />&nbsp;<%=bundle.getString("tradingfut_preorder_section")%>
    						&nbsp;<a style="text-decoration:none;" href="../web/dayTrading.do?<%=urlParam%>&amp;underlyingID=<%=webbean.getUnderId()%>">
    							<img src="../files/images/commun/actualiser_ico.gif" alt="" />
    						</a>
    						<BR><img src="../files/images/commun/tiret4.jpg" width="750" height="1" alt=""/><BR>					
    					</td>							
    				 </tr>			
    				 <tr style="height:5px;"><td></td></tr>
     
    					 	<%String actionParam2 ="/web/cancelDisplayOrders.do?" + urlParam;
    				   String comparator = ""+orderBean.getComparator();
    				   String portfolio = orderBean.getPortfolio();
    				   String actionParam ="/web/clientOrder.do?" + urlParam; %>
     
     
    				<tr><td id="dataOrders">
    				<html:form  action="<%= actionParam2%>" method="post">	
     
    				<table width="<%if (webbean.isAfficheCheckbox()) {%>780<%}else{%>750<%}%>" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_type")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("tradingfut_security")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("portfolio_qte")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_type")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_seuil")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_limite")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_state")%></td>
     
    				       <%boolean spol = CalypsoServices.getOrderBookStatus();%>								 
    						<logic:present name="orderBean" property="list">						  
    				    	  <logic:notEmpty name="orderBean" property="list">
    				          <%if (webbean.isAfficheCheckbox()) {%><td nowrap style="width:30px;" align="left">&nbsp;999<BR>&nbsp;<input style="width:20px;" type="checkbox" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/></td><%}%>		        
    				     </tr>				     			     
     
    					     <logic:iterate id="webOrder" indexId="positionIdx" name="orderBean" property="list" type="com.clickoptions.web.object.WebOrder">
    							<bean:size id="sizePos" name="orderBean" property="list" />						
    							<% int productCat = 3;%>
    								<tr <%if(positionIdx.intValue()%2==0){%>class="applat"<%}%> height="20" align="center"> 
    								   <td class="blgris"><%=webOrder.getOrderId()%></td>
    								   <td class="blgris"><product:productzoom productId="<%=webOrder.getProductId()%>" tagAttribute="<%=urlParam%>" productCat="3" classe="linkTurboJour"/></td>
    						           <td class="blgris">		
    						           	 <% if(webOrder.getProductType() == 8) {%>	
    						               <a href="../web/descriptionproduct.do?<%= urlParam %>&amp;idmenu=3&amp;pc=<%=productCat%>&amp;pt=<%=webOrder.getProductTypeName()%>"><img src="../files/images/click/picto_Hi-vvsmall_<%=webOrder.getProductTypeName()%>.gif" width="15" height="15" align="middle" alt="<%=bundle.getString("product_name_html_"+webOrder.getProductTypeName())%>" /></a>						                   		 			
    									<%} else {%>
    										 <a href="../web/descriptionproduct.do?<%= urlParam %>&amp;idmenu=3&amp;pc=<%=productCat%>&amp;pt=<%=webOrder.getProductTypeName()%>"><img src="../files/images/click/small_<%=webOrder.getProductTypeName()%>.gif" width="15" height="15" align="middle" alt="<%=bundle.getString("product_name_html_"+webOrder.getProductTypeName())%>" /></a>
    									<%}%>	
    								   </td>						         	
    						         <!--securite-->
    						         <td class="blgris"><format:price price="<%=webOrder.getBarrier()%>" currency="<%=webOrder.getWebProduct().getUnderlying().getCurrency()%>" zeroDisplay="false"/></td>
     
    								<!--quantité restante-->
    						         <td class="blgris"><%=webOrder.getQuantity()%></td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         <%=bundle.getString("portfolio_orderType"+webOrder.getOrderType()+webOrder.getWay())%>
    								 <%if(webOrder.getLogical(bundle)!=null && !webOrder.getLogical(bundle).equals("")){%>
    								 <div style="text-align:right;">
    									<img src="../files/images/commun/cond_sj_<%=locale.getLanguage()%>.gif" title="<format:undernameformat underid="<%=webOrder.getUnderlyingIntf().getUnderlyingId()%>" width="200" wrapmode="<%=WebConstant.WRAP_MODE_SPACE%>" urlParam="<%=urlParam%>" /> <%=webOrder.getLogical(bundle)%>&nbsp;<format:price price="<%=webOrder.getSpotCond()%>" currency="<%=webOrder.getUnderlyingCurrency()%>" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    										&nbsp;&nbsp;
    								 </div>
    								 <%}%>
    						         </td>					         
    						          <% double limiteLow=0.0; double limiteHigh=0.0;
    									if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_CL))
    										 limiteLow = webOrder.getPriceLo().doubleValue();
    									else if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_SD))
    										 limiteHigh = webOrder.getPriceHi().doubleValue();
    									 else if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_TSD))
    										  limiteHigh = webOrder.getPriceHi().doubleValue();
    								 %>
    						          <td nowrap class="blgris ">
    						          	<format:price price="<%=limiteHigh%>" currency="none" zeroDisplay="false"  maxFractionDigits="2"/>
    									<% Double deltaAbs = webOrder.getDeltaAbs();
    										Double deltaPer = webOrder.getDeltaPer();
    										if(deltaAbs != null){%>											
    											<div style="text-align:right;">
    												<img src="../files/images/commun/cond_ss_<%=locale.getLanguage()%>.gif" title="<format:price price="<%=deltaAbs.doubleValue()%>" currency="<%=webOrder.getUnderlyingCurrency()%>" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    												&nbsp;&nbsp;
    											</div>
    										<%}else if(deltaPer!=null){%>
    											<div style="text-align:right;">
    												<img src="../files/images/commun/cond_ss_<%=locale.getLanguage()%>.gif" title="<format:price price="<%=deltaPer.doubleValue()%>" currency="%" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    												&nbsp;&nbsp;
    											</div>													
    										<%}%>		
    						          </td>
    						          <!--limite-->
    						         <td class="blgris">
    						         	<format:price price="<%=limiteLow%>" currency="none" zeroDisplay="false" />
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	<order:status attribute="<%=urlParam%>" status="<%=webOrder.getStatus()%>" comments="<%=webOrder.getWebComments()%>" tradeId="<%=webOrder.getTradeId()%>" />
    						         </td>
    						         <% if (webOrder.getStatus().equals(WebConstant.ORDER_PENDING) || webOrder.getStatus().equals(WebConstant.ORDER_TOBE_EXECUTED) || webOrder.getStatus().equals(WebConstant.ORDER_SUSPENDED)){
    										                if(spol){%>
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="<%=webOrder.getOrderId()%>" /></td>										                
     
    										           <% }else{%>
    										                <td align="left" style="background-color:#FFFFFF;"><%=bundle.getString("preorder_sppol_non_dispo")%></td>
    										            <% }
    										          }else
    										          {%>
    										    		<td style="background-color:#FFFFFF;">&nbsp;</td>
    										          <%}%>
    						       </tr>
    					     </logic:iterate>
     
    					<%if (webbean.isAfficheCheckbox()) {%><tr style="height:25px;">	
    							<td class="btgris" colspan="9">&nbsp;</td>						
    							<td width="26">&nbsp;&nbsp;<img src="../files/images/bouton/cancel_sppol.gif" onclick="this.form.submit();" style="cursor:pointer;" title="<%= bundle.getString("bouton_annuler")%>"/></td>
     
    					</tr><%}%>
     
     
    					  </logic:notEmpty>
    					  <logic:empty name="orderBean" property="list">
    						<tr style="height:25px;">							
    							<td class="tabtexte btgris brgris blgris" colspan="9" style="text-align:center;">
    								<%=bundle.getString("tradingfut_preorder_none")%>
    							</td>
    						</tr>
    					 </logic:empty>
    					</logic:present>
     
    					<logic:notPresent name="orderBean" property="list">
    						<tr style="height:25px;">							
    							<td class="tabtexte btgris brgris blgris" colspan="9" style="text-align:center;">
    								<%=bundle.getString("tradingfut_preorder_none")%>
    							</td>
    						</tr>
    					</logic:notPresent>
     
    				  <tr style="height:15px;">							
    					<td class="tabtexte <%if (!webbean.isAfficheCheckbox()) {%>btgris<%}%>" colspan="9" style="text-align:right;width:750px;">
    						<img style="valign:bottom;"src="../files/images/commun/fleche_y.gif" width="15" height="13" alt=""/>						
    						&nbsp;<a  style="text-decoration:none;" href="../web/clientOrder.do?<%=urlParam%>">
    						<span style="font-weight:bold;text-decoration:none;font-size:11px;"><%=bundle.getString("tradingfut_preordre_link")%></span></a>
    					</td>
    				</tr>			 
    				 </table>	
    				 </html:form>	</td>							
    				</tr>				
    		</table>
    <script type="text/javascript">		
    	<% 	String myLocale = bundle.getLocale().getLanguage() + "_" + bundle.getLocale().getCountry();%>
    	refreshOrders("<%=myLocale%>");
    </script>

    la fonction refreshOrders permet de rafarichir le tableau en appelant le code suivant :

    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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    	<table width="780" border="0" cellspacing="0" cellpadding="0">				 
    				<tr><td>
    				 <%String actionParam3 ="/web/cancelDisplayOrders.do?from=tradingfuture&amp;" + urlParam;
    				   String comparator = ""+orderBean.getComparator();
    				   String portfolio = orderBean.getPortfolio();
    				   String actionParam ="/web/clientOrder.do?" + urlParam; %>
     
    			   <html:form  action="<%= actionParam3%>" method="post">
     
    				<table width="<%if (webbean.isAfficheCheckbox()) {%>780<%}else{%>750<%}%>" border="0" cellspacing="0" cellpadding="0">
    					 <tr height="20" class="tabtitle"> 
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_code")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("products_type")%></td>
    						<td class="blgris tabtitleback"><%=bundle.getString("tradingfut_security")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("portfolio_qte")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_type")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_seuil")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_limite")%></td>
    				        <td class="blgris tabtitleback"><%=bundle.getString("tradingfut_preorder_state")%></td>
     
    				       <%boolean spol = CalypsoServices.getOrderBookStatus();%>								 
    						<logic:present name="orderBean" property="list">						  
    				    	  <logic:notEmpty name="orderBean" property="list">
    				        <% if (webbean.isAfficheCheckbox()) {%><td nowrap style="width:30px;" align="left">&nbsp;<%=bundle.getString("preorder_cancel_all")%><BR>&nbsp;<input style="width:20px;" type="checkbox" id="allorders" property="allOrders" name="allOrders"  onClick="this.value=check(this.form.idOrders)"/></td><%}%>
    				     </tr>				     
     
    					     <logic:iterate id="webOrder" indexId="positionIdx" name="orderBean" property="list" type="com.clickoptions.web.object.WebOrder">
    							<bean:size id="sizePos" name="orderBean" property="list" />						
    							<% int productCat = 3;%>
    								<tr <%if(positionIdx.intValue()%2==0){%>class="applat"<%}%> height="20" align="center"> 
    								   <td class="blgris"><%=webOrder.getOrderId()%></td>
    								   <td class="blgris"><product:productzoom productId="<%=webOrder.getProductId()%>" tagAttribute="<%=urlParam%>" productCat="3" classe="linkTurboJour"/></td>
    						           <td class="blgris">		
    						           	 <% if(webOrder.getProductType() == 8) {%>	
    						               <a href="../web/descriptionproduct.do?<%= urlParam %>&amp;idmenu=3&amp;pc=<%=productCat%>&amp;pt=<%=webOrder.getProductTypeName()%>"><img src="../files/images/click/picto_Hi-vvsmall_<%=webOrder.getProductTypeName()%>.gif" width="15" height="15" align="middle" alt="<%=bundle.getString("product_name_html_"+webOrder.getProductTypeName())%>" /></a>						                   		 			
    									<%} else {%>
    										 <a href="../web/descriptionproduct.do?<%= urlParam %>&amp;idmenu=3&amp;pc=<%=productCat%>&amp;pt=<%=webOrder.getProductTypeName()%>"><img src="../files/images/click/small_<%=webOrder.getProductTypeName()%>.gif" width="15" height="15" align="middle" alt="<%=bundle.getString("product_name_html_"+webOrder.getProductTypeName())%>" /></a>
    									<%}%>	
    								   </td>						         	
    						         <!--securite-->
    						         <td class="blgris"><format:price price="<%=webOrder.getBarrier()%>" currency="<%=webOrder.getWebProduct().getUnderlying().getCurrency()%>" zeroDisplay="false"/></td>
     
    								<!--quantité restante-->
    						         <td class="blgris"><%=webOrder.getQuantity()%></td>
    						         <!--type d'ordre -->
    						         <td class="blgris">
    						         <%=bundle.getString("portfolio_orderType"+webOrder.getOrderType()+webOrder.getWay())%>
    								 <%if(webOrder.getLogical(bundle)!=null && !webOrder.getLogical(bundle).equals("")){%>
    								 <div style="text-align:right;">
    									<img src="../files/images/commun/cond_sj_<%=locale.getLanguage()%>.gif" title="<format:undernameformat underid="<%=webOrder.getUnderlyingIntf().getUnderlyingId()%>" width="200" wrapmode="<%=WebConstant.WRAP_MODE_SPACE%>" urlParam="<%=urlParam%>" /> <%=webOrder.getLogical(bundle)%>&nbsp;<format:price price="<%=webOrder.getSpotCond()%>" currency="<%=webOrder.getUnderlyingCurrency()%>" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    										&nbsp;&nbsp;
    								 </div>
    								 <%}%>
    						         </td>					         
    						          <% double limiteLow=0.0; double limiteHigh=0.0;
    									if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_CL))
    										 limiteLow = webOrder.getPriceLo().doubleValue();
    									else if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_SD))
    										 limiteHigh = webOrder.getPriceHi().doubleValue();
    									 else if(webOrder.getOrderType().equals(WebConstant.ORDER_TYPE_TSD))
    										  limiteHigh = webOrder.getPriceHi().doubleValue();
    								 %>
    						          <td nowrap class="blgris ">
    						          	<format:price price="<%=limiteHigh%>" currency="none" zeroDisplay="false"  maxFractionDigits="2"/>
    									<% Double deltaAbs = webOrder.getDeltaAbs();
    										Double deltaPer = webOrder.getDeltaPer();
    										if(deltaAbs != null){%>											
    											<div style="text-align:right;">
    												<img src="../files/images/commun/cond_ss_<%=locale.getLanguage()%>.gif" title="<format:price price="<%=deltaAbs.doubleValue()%>" currency="<%=webOrder.getUnderlyingCurrency()%>" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    												&nbsp;&nbsp;
    											</div>
    										<%}else if(deltaPer!=null){%>
    											<div style="text-align:right;">
    												<img src="../files/images/commun/cond_ss_<%=locale.getLanguage()%>.gif" title="<format:price price="<%=deltaPer.doubleValue()%>" currency="%" zeroDisplay="true" minFractionDigits="2" maxFractionDigits="2"/>"/>
    												&nbsp;&nbsp;
    											</div>													
    										<%}%>		
    						          </td>
    						          <!--limite-->
    						         <td class="blgris">
    						         	<format:price price="<%=limiteLow%>" currency="none" zeroDisplay="false" />
    						         </td>
    						         <!--Etat-->
    						         <td class="blgris brgris">
    						         	<order:status attribute="<%=urlParam%>" status="<%=webOrder.getStatus()%>" comments="<%=webOrder.getWebComments()%>" tradeId="<%=webOrder.getTradeId()%>" />
    						         </td>
    						         <% if (webOrder.getStatus().equals(WebConstant.ORDER_PENDING) || webOrder.getStatus().equals(WebConstant.ORDER_TOBE_EXECUTED) || webOrder.getStatus().equals(WebConstant.ORDER_SUSPENDED)){
    										                if(spol){%>
    										                <td align="left" style="background-color:#FFFFFF;">&nbsp;<input style="width:20px;" type="checkbox" property="idOrders" name="idOrders" value="<%=webOrder.getOrderId()%>" /></td>										                
     
    										           <% }else{%>
    										                <td align="left" style="background-color:#FFFFFF;"><%=bundle.getString("preorder_sppol_non_dispo")%></td>
    										            <% }
    										          }else
    										          {%>
    										    		<td style="background-color:#FFFFFF;">&nbsp;</td>
    										          <%}%>
    						       </tr>
    					     </logic:iterate>
     
    						<%if (webbean.isAfficheCheckbox()) {%><tr style="height:25px;">	
    							<td class="btgris" colspan="9">&nbsp;</td>						
    							<td width="26">&nbsp;&nbsp;<img src="../files/images/bouton/cancel_sppol.gif" onclick="this.form.submit();"  style="cursor:pointer;" title="<%= bundle.getString("bouton_annuler")%>"/></td>
     
    						</tr><%}%>
     
    					  </logic:notEmpty>
    					  <logic:empty name="orderBean" property="list">
    						<tr style="height:25px;">							
    							<td class="tabtexte btgris brgris blgris" colspan="9" style="text-align:center;">
    								<%=bundle.getString("tradingfut_preorder_none")%>
    							</td>
    						</tr>
    					 </logic:empty>
    					</logic:present>
     
    					<logic:notPresent name="orderBean" property="list">
    						<tr style="height:25px;">							
    							<td class="tabtexte btgris brgris blgris" colspan="9" style="text-align:center;">
    								<%=bundle.getString("tradingfut_preorder_none")%>
    							</td>
    						</tr>
    					</logic:notPresent>
     
    				  <tr style="height:15px;">							
    					<td class="tabtexte <%if (!webbean.isAfficheCheckbox()) {%>btgris<%}%>" colspan="9" style="text-align:right;width:750px;">
    						<img style="valign:bottom;"src="../files/images/commun/fleche_y.gif" width="15" height="13" alt=""/>						
    						&nbsp;<a  style="text-decoration:none;" href="../web/clientOrder.do?<%=urlParam%>">
    						<span style="font-weight:bold;text-decoration:none;font-size:11px;"><%=bundle.getString("tradingfut_preordre_link")%></span></a>
    					</td>
    				</tr>			 
    				 </table>	
    				</html:form>	 </td>							
    				</tr>			
    		</table>

Discussions similaires

  1. onChange="this.form.submit();" marche pas sous IE
    Par Death83 dans le forum Général JavaScript
    Réponses: 5
    Dernier message: 25/09/2005, 11h05
  2. [pop-up] window.open ne marche pas sous IE...
    Par Palmic dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 27/05/2005, 15h47
  3. [W3C] Pourquoi ça ne marche pas sous IE
    Par polo-j dans le forum Balisage (X)HTML et validation W3C
    Réponses: 6
    Dernier message: 16/02/2005, 16h07
  4. URGENT : Request.Form ne marche pas sous IE6
    Par Laurent Outan dans le forum ASP
    Réponses: 9
    Dernier message: 16/07/2004, 15h25
  5. 'SHOW TABLES' marche pas sous postgresql !?
    Par fet dans le forum PostgreSQL
    Réponses: 4
    Dernier message: 13/05/2004, 09h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo