hi
Untill now I used in my jsp's.
Now I installed the last version of struts, and I discovered that I'm not able
to use the name and type property anymore.
In my application I use multiple forms on one page and via one javascript
function per form, I set a hidden field in the selected form and submit the
form. The value of the hidden field is later used in an action.
e.g.
function setCampaign(target){
document.campaignForm.dispatch.value=target;
document.campaignForm.submit();
}
function setAct(target){
document.activityForm.dispatch.value=target;
document.activityForm.submit();
}
But I can't use the 'document.activityForm' anymore, because the name property
is forbidden.
Is there another way of knowing what form has to be submit and set the hidden
field, or do I have to do it in the following way ?
function set(target){
document.forms[0].dispatch.value=target;
document.forms[0].submit();
}
function setForm2(target){
document.forms[1].dispatch.value=target;
document.forms[1].submit();
}
any help is appreciated.
Koen Boutsen
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]