work!! thanks guys!
2017-01-20 13:28 GMT-02:00 António Ramos <ramstei...@gmail.com>: > 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 ?! > <script src="tagit.js" type="text/javascript"></script> > 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 GMT+00:00 Diego Tostes <tostes.pyt...@gmail.com>: > >> 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 <application>/views/config/disease.html >> >> >> Rgds >> >> Tostes >> >> >> 2017-01-19 20:26 GMT-02:00 António Ramos <ramstei...@gmail.com>: >> >>> 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'}} >>> >>> 2017-01-19 20:30 GMT+00:00 Dave S <snidely....@gmail.com>: >>> >>>> 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 html file without success too. >>>>> >>>>> How can i do ? >>>>> >>>>> Rgds >>>>> >>>>> Tostes >>>>> >>>> >>>> I have a graph that's served by myapp/static/chart1.html. It has the >>>> following header lines: >>>> >>>> <head> >>>> <title>HTML5 Canvas Chart Demo</title> >>>> <script src="js/RGraph.common.core.js"></script> >>>> <script src="js/RGraph.drawing.background.js" ></script> >>>> <script src="js/RGraph.common.csv.js"></script> >>>> <script src="js/RGraph.line.js"></script> >>>> <script src="data.js"></script> >>>> </head> >>>> >>>> >>>> data.js is just an array declaration (and generated by a script). >>>> >>>> The Rgraph stuff is in maypp/static/js >>>> >>>> If this doesn't help, please show us what you've tried. >>>> >>>> /dps >>>> >>>> >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+unsubscr...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+unsubscr...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.