On stopthespin.com, we run all our static files directly through nginx
so pylons never touches the javascript or css, and as a result is
delivered faster to the client. I'm sure why you would have this
problem, but I highly recommend you exclude your static files since
this really shouldn't be a pylons issue at all.

Cheers,
Tom Longson
http://stopthespin.com/

On Tue, Mar 10, 2009 at 6:12 AM, Marc Lagrange <[email protected]> wrote:
>
> Hi,
>
> I load my javascripts files via:
> <script type="text/javascript" src="/js/jquery-1.2.6.min.js"></script>
> <script type="text/javascript" src="/js/jajax.js"></script>
>
> I'ts good but, i load any page with this in my browser like
> http://127.0.0.1:5000/save,
> i open firebug, go to net and look at the javascript file request
> content returned by the server, and the file content is 'loaded' three
> times.
>
> example:
>
> blah.js contains:
>
> /* blah */
> function(blah) {
> alert('blah')
> }
>
> In firebug i can look:
> /* blah */
> function(blah) {
> alert('blah')
> }
> /* blah */
> function(blah) {
> alert('blah')
> }
> /* blah */
> function(blah) {
> alert('blah')
> }
>
> But if i access to url/js/blah.js it look like
> /* blah */
> function(blah) {
> alert('blah')
> }
>
> If someone have an idea, i can't find what is the problem here :/
>
> (i don't think it's my javascript the problem, the jQuery and my own
> javascript have the same problem)
>
> I can post my templates and/or controller if needed.
>
> Thanks.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to