RE: How to identify submit button in JSP

2003-11-19 Thread Yann Lebreton
Try: function Disable() { frm=document.forms['form1'] if(frm.ids.checked) {frm.modify.disabled=false} else {frm.modify.disabled=true} } Or simpler: function Disable() { frm=document.form1;

RE: How to identify submit button in JSP

2003-11-19 Thread [EMAIL PROTECTED]
That's what I did. But the 'modify' button didn't react at all. --- Yann Lebreton [EMAIL PROTECTED] wrote: Try: function Disable() { frm=document.forms['form1'] if(frm.ids.checked) {frm.modify.disabled=false} else

RE: How to identify submit button in JSP

2003-11-19 Thread Yann Lebreton
to identify submit button in JSP That's what I did. But the 'modify' button didn't react at all. --- Yann Lebreton [EMAIL PROTECTED] wrote: Try: function Disable() { frm=document.forms['form1'] if(frm.ids.checked) {frm.modify.disabled=false

RE: How to identify submit button in JSP

2003-11-19 Thread [EMAIL PROTECTED]
to identify submit button in JSP That's what I did. But the 'modify' button didn't react at all. --- Yann Lebreton [EMAIL PROTECTED] wrote: Try: function Disable() { frm=document.forms['form1'] if(frm.ids.checked) {frm.modify.disabled=false

RE: How to identify submit button in JSP

2003-11-19 Thread Yann Lebreton
, November 19, 2003 11:49 AM To: Struts Users Mailing List Subject: RE: How to identify submit button in JSP Well, I have a couple of other forms with the same form name 'idForm' but diffrent action, does that cause the problem? How should I handle that? I checked the form name in html output

Re: How to identify submit button in JSP

2003-11-19 Thread Colin Kilburn
... FYI if you have 2 forms with the same name or in your form 2 fields named ids (or modify) this script won't work. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 11:49 AM To: Struts Users Mailing List Subject: RE: How to identify submit