You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Xi Cheng <xj...@yahoo.com> on 2005/02/27 23:45:42 UTC

submit form in a screen from the navigtor

Hi there,
 
I want to place a link in the navigator, so that when user clicks on it, the form in the screen will be submited.
I guess I have to find out how to reference the screen object in the navigator. But how?
Does anyone know how to do this ?
Thanks!
 
Xi
 

		
---------------------------------
Do you Yahoo!?
 Yahoo! Sports -  Sign up for Fantasy Baseball.

Re: submit form in a screen from the navigtor

Posted by madhuranjan kumar sinha <ma...@cybage.com>.
To submit a form through link you have to take help of JavaScript. These are
steps you have to follow to accomplish this :-
1. declare a variable in javascript which is assigned a value during
velocity parsing.
    Ex. var url = '$link.setPage("Test.vm")';
2. At the OnClick event of Anchor tag you have to write following javascript
code:-
    document.<formName>.action = url ;
    document.<formName>.submit() ;

Madhu

----- Original Message ----- 
From: "Xi Cheng" <xj...@yahoo.com>
To: <tu...@jakarta.apache.org>
Sent: Monday, February 28, 2005 4:15 AM
Subject: submit form in a screen from the navigtor


> Hi there,
>
> I want to place a link in the navigator, so that when user clicks on it,
the form in the screen will be submited.
> I guess I have to find out how to reference the screen object in the
navigator. But how?
> Does anyone know how to do this ?
> Thanks!
>
> Xi
>
>
>
> ---------------------------------
> Do you Yahoo!?
>  Yahoo! Sports -  Sign up for Fantasy Baseball.


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