On Friday, November 01, 2013 07:08:52 PM Steffen Hoffmann wrote:
> On 01.11.2013 11:06, [email protected] wrote:
> > I am trying to in add a javascript thing to a Trac wiki page. For example,
> > in>
> > this Trac wiki page:
> > /systems/wiki/GPS/maps
> >
> > I have:
> > {{{
> > #!html
> >
> > <script src="OpenLayers-2.13.1/OpenLayers.js"></script>
> >
> > }}}
> >
> > The script is not found. I see in my apache server log that it is looking
> > for;>
> > GET /systems/wiki/GPS/OpenLayers-2.13.1/OpenLayers.js
> >
> > which is obviously wrong. I need to have the reference resolve to a
> > directory on the server, not a page in the wiki. How can I do that?
>
> TracWiki will not allow content like scripts unless you explicitly allow
> it in your trac.ini:
>
> [wiki]
> render_unsafe_content = true
This i already have.
> Anyway, I would put the file into <env>/htdocs/
> OpenLayers-2.13.1/OpenLayers.js and refer to it as
> site/OpenLayers-2.13.1/OpenLayers.js
I decided to use the full URL and that seems to be better. I think...
I see that I need to call the script's init() function. I had this as
<body onload="init()">
But I no longer have a body tag.
--
Yours sincerely,
Roger Oberholtzer
Ramböll RST / Systems
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
[email protected]
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/groups/opt_out.