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.