Re: [web2py] Re: static file

2017-01-24 Thread Diego Tostes
work!! thanks guys! 2017-01-20 13:28 GMT-02:00 António Ramos : > open the browser console. You should see some kind of warning saying css > and js not found.. > > in your html you are calling the js like this ?! > > you should place your js inside static/js > then load it like this in the html

Re: [web2py] Re: static file

2017-01-20 Thread António Ramos
open the browser console. You should see some kind of warning saying css and js not found.. in your html you are calling the js like this ?! you should place your js inside static/js then load it like this in the html {{response.files.append(URL('static','/js/tagit.js'))}} 2017-01-20 12:42 G

Re: [web2py] Re: static file

2017-01-20 Thread Diego Tostes
Hi guys,,... i did all the tips without succes... here is my files: html file - http://pastebin.com/XDVkv4T6 js file - http://pastebin.com/70HMVFNb css file - http://pastebin.com/yanwj6ve my html file is at /views/config/disease.html Rgds Tostes 2017-01-19 20:26 GMT-02:00 António Ramos

Re: [web2py] Re: static file

2017-01-19 Thread António Ramos
if you already placed your css and js in static then in your html inside your controller folder you can do {{response.files.extend([URL('static','js/xxx.js')])}} {{response.files.append(URL('static','/js/yyy.js'))}} {{response.files.append(URL('static','/css/zzz.css'))}} {{extend 'layout.html'}}

[web2py] Re: static file

2017-01-19 Thread Dave S
On Thursday, January 19, 2017 at 12:22:06 PM UTC-8, Diego Tostes wrote: > > Hi, > > I have a html file that i i need to use with web2py, but this file access > a unique css and js file. > > > I try to add the files at the static withous success. I try to hardcoder > the script and the css at the

[web2py] Re: Static file caching on GAE

2013-11-20 Thread Niphlod
This has been already taken care of in the config examples... https://github.com/web2py/web2py/blob/master/examples/app.example.yaml#L28 On Wednesday, November 20, 2013 1:11:58 PM UTC+1, St. Pirsch wrote: > > The book states that a static asset management has been introduced: > http://web2py.com

Re: [web2py] Re: Static file caching problem?

2011-05-19 Thread ron_m
Martin, Thanks for the suggestion, the analyze function shows 200 for the status but that it loaded from cache which is consistent with observation using Wireshark. This tool is also a much more direct approach to increasing performance. It also pointed out that the items getting the 200 do not

Re: [web2py] Re: Static file caching problem?

2011-05-19 Thread Martín Mulone
did you try with http://pagespeed.googlelabs.com ? 2011/5/19 ron_m > I examined the TCP traffic with Wireshark and could not see the actual > requests go out to the server. I am beginning to believe this is a Firebug > instrumentation problem. I would believe the Wireshark trace, it had no > fil

[web2py] Re: Static file caching problem?

2011-05-19 Thread ron_m
I examined the TCP traffic with Wireshark and could not see the actual requests go out to the server. I am beginning to believe this is a Firebug instrumentation problem. I would believe the Wireshark trace, it had no filters and I removed as much traffic as possible on the interface and all I