struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrique VIECILI" <>
Subject Re: Getting the values from Popup window to Parent window if Multiple text fields in parent window
Date Thu, 08 Jul 2004 17:32:00 GMT
If your filefields have all the same id or name you will get an array of them, then you should
access them like an array.

By example:

File 1: <input type="file" id="myFile" />
File n: <input type="file" id="myFile" />

var files = document.getElementById("myFile");

for( i = 0; i < files.length; i++)

Henrique Viecili
  ----- Original Message ----- 
  From: Srinivas Rao 
  To: Struts Users Mailing List 
  Sent: Thursday, July 01, 2004 1:23 AM
  Subject: Getting the values from Popup window to Parent window if Multiple text fields in
parent window

  Hi guys,

  I am facing samll problem , it's a simple one but i don't know what is the wrong i am doing
  Please help me..
  My problem is ...
  I have parent window and child window (ie popup window)..If i entered 
  the value into text field to popup window then the value come to the parent window if i
closed the child window. Here it is working when single file but if it is multiple files,it's
not working .I thing in child window cannot identify the relevant text field.

  the code is here .....

  This is Parent window code.........

  function showList() {
  alert("Call Show List");
  sList ="/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510");

  Chile window Code......

  function append()

  function pickinf() {
  if (window.opener & !window.opener.closed)
  = document.getElementById("comment").value;

  This is the code ....

  Please tell me what is the wrong i am doing now...

  Thanks to replay to me.....


  Do you Yahoo!?
  New and Improved Yahoo! Mail - Send 10MB messages!

  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message