D
dodgeyb
Hi there, newbie here, trying to write some clientside javascript to
find which textarea is not disabled and pass text back to opener page.
I have potentially many textareas which get created on the fly (by
server) on the form, and only ONE of them will be enabled. I need to
find that one and send that text back to the opener window, so I need
to loop rather than go through by name.
I know I can send the data back like :
o = eval(self.opener.document.Form1.txtResult);
o.value = self.document.Form1.ctlName.value;
Not sure how to start looping controls...
Any guidance much apprec'd !
find which textarea is not disabled and pass text back to opener page.
I have potentially many textareas which get created on the fly (by
server) on the form, and only ONE of them will be enabled. I need to
find that one and send that text back to the opener window, so I need
to loop rather than go through by name.
I know I can send the data back like :
o = eval(self.opener.document.Form1.txtResult);
o.value = self.document.Form1.ctlName.value;
Not sure how to start looping controls...
Any guidance much apprec'd !