You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lavanyaonnet <la...@gmail.com> on 2008/05/27 10:01:02 UTC

Re: struts 1.2: calling an action by javascript

Hi,

I too have littile bit knolwledge in javascript, plz try this 

<script language="javascript">
        function submitFunction(){
        document.forms(0).submit();
        }        
        </script>

<script language="javascript">
        function submitaddFunction(){
        document.forms(1).submit();
        }        
        </script>

just call the above function in ur button tag.




Ingo Villnow wrote:
> 
> Hello,
> 
> i want to call an action by javascript, when a value in a <html:select>
> field changes. I want to fill my <html:form> with the data provided by
> the action. Any ideas? I don't know a lot of javascript :-(
> 
> thanks & greetings from Berlin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

-- 
View this message in context: http://www.nabble.com/struts-1.2%3A-calling-an-action-by-javascript-tp13510349p17485073.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org