Bonjour,
je suis un newbie en javascript...
ma Table ASP...
<table font face="ms sheriff" style="font: x-small; color: #000000">
<% If Not objRs.EOF then%>
<%Do While Not objRs.EOF and idx =< 4
if idx = 1 then%>
<tr>
<%idxpos = "A" & idxname%>
<td><INPUT type=checkbox value="oui" name="<%=idxpos%>" onclick="remet()"></td>
<TD WIDTH=100 ALIGN="LEFT"><%=objRs.fields("french").value%></TD>
<%end if
if idx= 2 then %>
<%idxpos = "A" & idxname%>
<td><INPUT type=checkbox value=oui name=<%=idxpos%> onclick="remet()"></td>
<td colspan=1 WIDTH=160 ALIGN="LEFT"><%=objRs("french").value%></TD>
<%end if
if idx= 3 then %>
<%idxpos = "A" & idxname%>
<td><INPUT type=checkbox value=oui name=<%=idxpos%> onclick="remet()"></td>
<td colspan=1 WIDTH=160 ALIGN="LEFT"><%=objRs("french").value%></TD>
<%end if
if idx= 4 then%>
<%idxpos = "A" & idxname%>
<td><INPUT type=checkbox value=oui name=<%=idxpos%> onclick="remet()"></td>
<td WIDTH=100 ALIGN="LEFT"><%=objRs("french").value%> </TD>
</tr>
<%end if
objRs.MoveNext
idxname = idxname + 1
if idx = 4 then
idx = 1
else
idx = idx + 1
end if
Loop
end if %>
</table>
Ma fonction javascrip
<script language="javascript" type="text/javascript">
<!--
function remet() {
var tot;
var vtotal;
var spec=0;
if (document.envoirenseignement.A1.checked==true) { //trouvé
spec=spec+1;
}
Ma question.....
J'aimerais pourvoir changer le champ A1 pour une variable venant de ma table.
Est-ce possible?
merci d'avance
J-B