On Fri, 2006-10-11 at 09:18 +0100, Diez B. Roggisch wrote:
> iain duncan schrieb:
> > I feel that I must be missing something simple because I didn't manage
> > to find any google results on this. How am I supposed to include an
> > external javascript file?
> > 
> > doing in the head:
> > <script type="text/javascript" src="cart.js"></script>
> > 
> > Seemed to do nothing, even will a full path name to cart.js. 
> 
> You have a directory /static under your project. Use e.g.
> 
>      <script src="/static/javascript/admin.js" 
> type="text/javascript"></script>
> 
> 
> to include stuff beneath it.

Thanks! I'll add that to my collection of notes for the docs. I'm
thinking a quick mention of that would be nice in the wiki and manual
section on javascript for folks like me who don't go through things in
necessarily the right order. ;)

Iain



--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to