Voici mon problème :
J'ouvre ma fenêtre Popup de cette façon :
Je récupère le chemin d'un fichier :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3window.showModalDialog('Parcourir.php', 'Parcourir', 'dialogheight:110px; dialogwidth:500px; center:1; scroll:0; help:0; status:0'); .
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 <table align="center" width="100%"> <tr> <td><input type="file" name="CheminFichier" size=60></td> </tr> <tr> <td align="center><a href="#" onClick="CopierEtFermer();">Valider</a></td> <td align="center><a href="#" onClick="window.close();">Annuler</a></td> </tr> </table> <script language="javascript" type='text/javascript'> function CopierEtFermer() { // ICI : récupérer le contenu de l'input, et l'envoyer à la fenêtre appelante window.close(); } </script>Ma question est :
Comment récupérer le contenu de l'input, et l'envoyer à la fenêtre appelante ?
![]()









Répondre avec citation
Partager