salut tous,
j'ai ouvert un pop up sans aucun probleme mes cette pop up doit changer quand je change le contenu d'une liste de dans en utilisant on change.
cette pop up ne se recharge pas par le passage des nouvelles variables
et voila la fonction changer()
et voila les deux listes
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 function changer() { b=document.frm.niveau1.value; if(b!="t1") { //v="choix_niveau.asp?niv1=" + b + "&nomenclature=" + nomenc ; //location.href=v ; var hauteur=400; var largeur=500; var top=(screen.height-hauteur)/2; var left=(screen.width-largeur)/2; popup=window.open("choix_niveau.asp?nomenclature=111&niv1="+b+","PopUp","top="+top+",left="+left+",width="+largeur+",height="+hauteur+",toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,menubar=no,status=no"); popup.focus(); }
la liste niveau1 c'est la premiere et la liste niveau2 xc'est que je veux charger en utilisant la variable niv1.
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 <td width="200"> <FIELDSET> <LEGEND><%=lib_niv1%> : </LEGEND> <p align="center"> <select size="1" name="niveau1" onchange="changer()"> <option value="t1">tous</option> <% if not rsc.eof and not rsc.bof then rsc.movefirst while not rsc.eof and not rsc.bof %> <option value="<%=rsc("code_modalite")%>"><%=rsc("libelle_fr")%></option> <% rsc.movenext wend end if %> </select> <br> </fieldset> </td> <td width="200"> <FIELDSET> <LEGEND> : </LEGEND> <p align="center"> <select size="1" name="niveau2" onchange=""> <option value="1">tous</option> <% if not rs2.eof and not rs2.bof then rs2.movefirst while not rs2.eof and not rs2.bof %> <option value="<%=rs2("code_modalite")%>"><%=rs2("libelle_fr")%></option> <% rs2.movenext wend end if %> </select> <br> </fieldset> </td>
ni location.href , ni l'autre window.open ne marche
merci de votre aide
Partager