View Single Post
  #5 (permalink)  
Old 09-27-06, 06:54 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
you can place all the attach fields in an array:
Code:
attach = new array(number_of_fields);
attach[0] = "window.opener.document.foo.attach1.value";
attach[1] = "window.opener.document.foo.attach2.value";
attach[2] = "etc";
for(var i=0; i<number_of_fields; i++){
  eval(attach[i]+" = "+document..filesform.userFile[i].value);
}
don't know if there's an eval function in javascript, but i think there is. Try this and post back,
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote