Raj,

Maybe "document.form.action=act;" should be "document.form.action=action;" 
since your setAction function has 'action' as a parameter instead of 
'act'?

Susan Bradeen

On 04/01/2003 06:57:22 AM Raj Atchutuni wrote:

> I am trying to submit the form with different actions basing on the
> user action. I am using java script to change the form action 
dynamically.
> struts config file has "/aboutus" action.
> 
> Here is my code. Some how form is not submitted. Once i click the 
'aboutus'
> link nothing is happening.
> 
> Can some one tell me what is going on please.
> 
> function setAction(action, link)
> {
> document.form.action = act;
> document.form.method = "POST";
> document.form.selectedGlobalLink.value = link; // This is hidden filed 
to 
> remember which   link is selected
> 
> document.form.submit();
> }
> 
> 
> <html:form  action = "/demo" method = "POST">
> 
> <a href="#" onClick="setAction('/aboutus','2');">About Us</a>
> 
> </html:form>
> 
> 
> Thanks
> 
> Raj
> 
> 
> 
> ---------------------------------
> Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and 
more

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to