Have you annotated destination with @Persist in case it is a form submission
?

regards
Taha



On Mon, Mar 7, 2011 at 11:39 PM, surajknair <[email protected]> wrote:

> javascript:
> This is inside a .js file.
>
> function PreviewOverlay( linkClicked ) {
>
>      if (linkClicked == 'print') {
>
>            $('someformid').linkDestination.value = 'PrintingOverlay';
> //Setting the hidden field value within the form.
>
>            alert($('someformid').linkDestination.value); //To check value
> added of hidden field.
>
>      }
>
>      $('PreviewOverlay').showOverlay();
>
> }
>
>
>
> function showOverlayFrom(linkDestination){
>
>      alert("Hidden Field Value: "+linkDestination); //This is to check
> whether I can get the hidden field value here into another function after
> the form submit.
>
> }
>
>
>
>
>
>
> .tml
>
>
>
>
>
>
>
> Continue //The value in the hidden field will have the value to decide
> which
> overlay to open.
>
>
>
>
>
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Passing-value-of-Hidden-Field-Property-to-Javascript-Function-in-tml-tp3412730p3412845.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to