You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by wesley <we...@yahoo.co.uk> on 2008/10/14 10:56:32 UTC

T5 communication with applet

hi all,

is it possible that T5 page's receive event from applet, eg. a click of a
button in applet will send an event to T5's page method. and passing
parameter/object to applet?

regards
wesley
-- 
View this message in context: http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 communication with applet

Posted by Argo Vilberg <wi...@gmail.com>.
Applet declaration:


classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="400" height="80"
codebase="
http://java.sun.com/products/plugin/autodl/jinstall-1_4_0-win.cab#Version=1,4,2,0"><param
name="java_code" value="SignApplet.class"><param name="java_archive"
value="SignApplet_sig.jar,iaikPkcs11Wrapper_sig.jar"><param name="name"
value="SignApplet1"><param name="mayscript" value="true"><param
name="java_type" value="application/x-java-applet;version=1.4"><param
name="scriptable" value="true"><param name="LANGUAGE" value="EST"><param
name="FUNC_SET_CERT" value="window.setCert"><param name="FUNC_SET_SIGN"
value="window.setSignature"><param name="FUNC_CANCEL"
value="window.cancelDlg"><param name="FUNC_DRIVER_ERR"
value="window.DriverError"><param name="DEBUG_LEVEL" value="9"><param
name="OPERATION" value="PREPARE"><param name="HASH" value=""><param
name="TOKEN_ID" value="">

<embed type="application/x-java-applet;version=1.4" width="400"
height="80" pluginspage="http://java.sun.com/products/plugin/index.html#download"
java_code="SignApplet.class"
java_archive="SignApplet_sig.jar,iaikPkcs11Wrapper_sig.jar"
NAME="SignApplet" MAYSCRIPT="true" LANGUAGE="EST"
FUNC_SET_CERT="window.setCert" FUNC_SET_SIGN="window.setSignature"
FUNC_CANCEL="window.cancelDlg" FUNC_DRIVER_ERR="window.DriverError"
DEBUG_LEVEL="9" OPERATION="PREPARE" HASH="" TOKEN_ID=""><noembed>Teie
brauser ei toeta Java keskkonda!</noembed></embed>
</object>



javascrtipt


<script language="JavaScript">
        function setCert(cert, token) {
                var f1 = document.forms["xmlsrc"];
                f1.elements["signCertHex"].value = cert;
                f1.elements["signCertId"].value = token;
                f1.submit();
        }

        function setSignature(signature) {
                var fs = document.forms["xmlsrc"];
                fs.elements["signValueHex"].value = signature;
                fs.submit();
        }

        function cancelDlg() {
                var fs = document.forms["cancelfrm"];
                fs.submit();
        }

        function DriverError() {
                window.document.drverrfrm.submit();
        }
</script>





And f1 form submit like ordinary tapestry5 form submit..



ARgo










2008/10/14, wesley <we...@yahoo.co.uk>:
>
>
> hi there,
>
> any super simple short samples?
>
> thanks
> wesley
>
>
> Argo Vilberg wrote:
> >
> > I use java applet that calls javascript method and after that javascript
> > calls tapestry actions.
> >
> > Argo
> >
> >
> > 2008/10/14, wesley <we...@yahoo.co.uk>:
> >>
> >>
> >> hi all,
> >>
> >> is it possible that T5 page's receive event from applet, eg. a click of
> a
> >> button in applet will send an event to T5's page method. and passing
> >> parameter/object to applet?
> >>
> >> regards
> >> wesley
> >> --
> >> View this message in context:
> >>
> http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
> >> Sent from the Tapestry Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332101.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: T5 communication with applet

Posted by wesley <we...@yahoo.co.uk>.
hi there,

any super simple short samples?

thanks
wesley


Argo Vilberg wrote:
> 
> I use java applet that calls javascript method and after that javascript
> calls tapestry actions.
> 
> Argo
> 
> 
> 2008/10/14, wesley <we...@yahoo.co.uk>:
>>
>>
>> hi all,
>>
>> is it possible that T5 page's receive event from applet, eg. a click of a
>> button in applet will send an event to T5's page method. and passing
>> parameter/object to applet?
>>
>> regards
>> wesley
>> --
>> View this message in context:
>> http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
>> Sent from the Tapestry Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332101.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5 communication with applet

Posted by Argo Vilberg <wi...@gmail.com>.
I use java applet that calls javascript method and after that javascript
calls tapestry actions.

Argo


2008/10/14, wesley <we...@yahoo.co.uk>:
>
>
> hi all,
>
> is it possible that T5 page's receive event from applet, eg. a click of a
> button in applet will send an event to T5's page method. and passing
> parameter/object to applet?
>
> regards
> wesley
> --
> View this message in context:
> http://n2.nabble.com/T5-communication-with-applet-tp1332006p1332006.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>