Another alternative is to put your JavaScript in a file and define the
following at the top of the .vm file...

<script language="JavaScript" src="$content.getURI("js/myfile.js")"
type="text/javascript"/>

In addition to this, I am storing the javascript as a .vm file and embedding
Velocity directives & variable declarations directly within the JavaScript.
This is how I dynamically customize our JavaScript based navigation system.
Basically, this allows you to do dynamic, server side JavaScript code
generation.

-Mitch

-----Original Message-----
From: Eric Emminger [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 18, 2002 4:08 PM
To: Turbine Users List
Subject: Re: JavaScript


Dieter

> I have a module where i have a bunch of JavaScript Function.
> My Question is how to i integrate this in my turbine app?

Put the script tags in the .vm files.

Hope that helps!

Eric

--
Eric Emminger
[EMAIL PROTECTED]


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


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

Reply via email to