luca72 schrieb:
> Hello i have a little question.
> On my master i use one js that i load in this way:
> <script type="text/javascript" src="../static/javascript/bordi.js"></
> script>
The correct way to refer to the files in the "static" directory in you
application's package with URLs is "/static/<file>". Example:
<script type="text/javascript" src="/static/javascript/bordi.js" />
If there is the possibility that your application will be served from a
different URL root, i.e. you have "server.webpath" set in your config
file, you should use the "tg.url" function. Example:
<script type="text/javascript"
src="${tg.url('/static/javascript/bordi.js')}" />
For more information see:
http://docs.turbogears.org/1.0/StaticFiles
http://docs.turbogears.org/1.0/GettingStarted/URLs
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---