Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by joshcanfield:
http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript

The comment on the change is:
Added note about using template expansions

------------------------------------------------------------------------------
- When you include your own JavaScript functions in a page or component, you 
have to take care that the formatting doesn't go awry. So I recommend you use 
the following approach (pay special attention to the comment tags at the start 
and end of the script tags:
+ When you include your own JavaScript functions in a page or component, you 
have to take care that the formatting doesn't go awry. So I recommend you use 
the following approach (pay special attention to the comment tags at the start 
and end of the script tags):
  {{{
  <script type="text/javascript" language="JavaScript">
+     var myValue = '${prop:value}'; // before the comment so Tapestry sees it!
  <!-- //
      // Toggle the display of a set of elements between show and hide
      function toggle() {

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to