You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Detlef Schulze <d....@iliuk.com> on 2006/03/22 15:59:11 UTC

trigger javascript onLoad()

Hi,

I need to add a javascript to a page (that uses shell/body components)
and trigger it via body=onLoad (this is done for transaction tracking
via google analytics).

I've searched a bit but did not find an easy solution how to do that.
Could someone point me to the right place?

I am using tap 3 ....


Cheers,
detlef

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


Re: trigger javascript onLoad()

Posted by Andreas Andreou <an...@di.uoa.gr>.
you can use the Script component
http://jakarta.apache.org/tapestry/3.0.3/doc/ComponentReference/Script.html
create a .script file
and add javascript that you want triggered when body loads in the
<initialization> section of the .script file.

Detlef Schulze wrote:

>Hi,
>
>I need to add a javascript to a page (that uses shell/body components)
>and trigger it via body=onLoad (this is done for transaction tracking
>via google analytics).
>
>I've searched a bit but did not find an easy solution how to do that.
>Could someone point me to the right place?
>
>I am using tap 3 ....
>
>
>Cheers,
>detlef
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>  
>

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