Including external javascript

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Including external javascript

Henrik Pettersen
Ladies and gentlemen,

does anyone know how you would include an external javascript file in
your view? And for all views (globally, like yui)?

Henrik



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Including external javascript

Alexander Žaťko
You could put something like this into the <head> element of either  
your individual view pages, or the theme.xsl page (in the lib/ops-
resources-private.jar) to have the script available in all pages of  
your app:

                 <xhtml:script type="text/javascript" src="/path/to/
your/javascript/file/your-js-file.js"/>
A.

On Dec 1, 2006, at 12:57 PM, Henrik Pettersen wrote:

> Ladies and gentlemen,
>
> does anyone know how you would include an external javascript file in
> your view? And for all views (globally, like yui)?
>
> Henrik
>
>
> --
> You receive this message as a subscriber of the ops-
> [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/ 
> wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Including external javascript

Henrik Pettersen
Alexander,

thanks! Worked like a charm...

Henrik

On 12/1/06, Alexander Zatko <[hidden email]> wrote:

> You could put something like this into the <head> element of either
> your individual view pages, or the theme.xsl page (in the lib/ops-
> resources-private.jar) to have the script available in all pages of
> your app:
>
>                  <xhtml:script type="text/javascript" src="/path/to/
> your/javascript/file/your-js-file.js"/>
> A.
>
> On Dec 1, 2006, at 12:57 PM, Henrik Pettersen wrote:
>
> > Ladies and gentlemen,
> >
> > does anyone know how you would include an external javascript file in
> > your view? And for all views (globally, like yui)?
> >
> > Henrik
> >
> >
> > --
> > You receive this message as a subscriber of the ops-
> > [hidden email] mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > ObjectWeb mailing lists service home page: http://www.objectweb.org/
> > wws
>
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws