Bonjour,
je rencontre des difficultées à mettre à jour ma popup lancé à partir de ma fenêtre principale et à mettre ma popup à jour à partir d'ue iframe contenu dans la fenêtre principale.
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
 
<script LANGUAGE="JavaScript">
	var win;			
	function popupcentree(page,largeur,hauteur,options)
	{
		var top=(screen.height-hauteur)/2;
		var left=(screen.width-largeur)/2;
		win=window.open(page,"popup","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
	}					
</script>
<table width="100%" height="90%"> 
	<tr valign="center" width="100%" height="100%"> 
		<td align="center" width="100%" height="100%">
			<div class="display">	
 
				<h3 class="form">
				<bean:message key="title.save_display"/>  <bean:write name="ce_view" property="refCom"/>
				</h3>
					<SCRIPT LANGUAGE="JavaScript">	
						javascript:popupcentree('/ref_ce/action/launchPopUp',600,300,'width=600,height=190 toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=0, copyhistory=0, menuBar=0');
					</SCRIPT>				
			</div>
		</td>
	</tr>
</table>
<iframe src="/ref_ce/action/startSave"  name="hiddenFrame" height="0" width="0"  frameborder="no" allowtransparency="true">
</iframe>
Mon iframe appelle une action struts qui charge la jsp avec le code suivant :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
<SCRIPT LANGUAGE="JavaScript">	
		win.document.location.reload();
</SCRIPT>
Le problème est que ma popup dont la reférence est win n'est pas reconnu.

Any solutions?

Merci