Bonjour,

Sur ce petit exemple, je cherche, lorsque l'on clique sur "Add Project" ou "Add Customer", à implémenter un fichier texte. Chaque élément ajouté devra venir à la suite de ceux deja présent dans le fichier (trié par Customer et Project...bien evidemment )
Ce fichier texte devra contenir tous les precedemment éléments ajouté avec les commandes "Add". Et pour finir, tous ces éléments devront figurer dans la liste de menu déroulant situer à gauche de chaque bouton. Merci pour votre aide.
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
<head>
<title>blabla</title>
<HTA:APPLICATION
      APPLICATION="htaControles"
 > 
 </head>
 <script language="VBScript">
 
 window.setTimeout "Size",5
 
 Sub Size
 ResizeTo 850,580
 MoveTo 100,100
 End Sub
 
	Dim Master
	Dim Master1
 
	Titre = "blabla"
 
 
	Sub SetProject
	end sub
 
	Sub AddProject
		ask1 = inputBox("Enter the name of the new project",Titre)
	end sub
 
	Sub SetCustomer
	end sub
 
	Sub AddCustomer
		ask1 = inputBox("Enter the name of the new customer",Titre)
	end sub
 
 </script>
 <body>
 <BODY BGCOLOR="CFD6D2">
 
<b>CUSTOMER :</b> &nbsp &nbsp &nbsp &nbsp &nbsp
<SELECT NAME="LstCustomer" SIZE=1 onChange="SetCustomer">
&nbsp &nbsp
<OPTION VALUE="">
<OPTION VALUE="toto">toto
<OPTION VALUE="tata">tata
<input type = "button" value = "ADD CUSTOMER" onClick="AddCustomer" /><br><br>
 
<b>PROJECT NAME : &nbsp &nbsp</b>
<SELECT NAME="LstProject" SIZE=1 onChange="SetProject">
&nbsp &nbsp &nbsp &nbsp
<OPTION VALUE="">
<OPTION VALUE="titi">titi
<OPTION VALUE="tutu">tutu
<input type = "button" value = "ADD PROJECT" onClick="AddProject" /><br><br>
 
</form>
</body>