I cut and pasted your code into one of my controllers and it worked just fine as is.
-Jim On Thursday, August 27, 2015 at 12:17:45 PM UTC-5, Martti Lamberg wrote: > > Okay, I can't get it to work. I did like in this tutorial: > http://docs.handsontable.com/0.17.0/tutorial-quick-start.html > I embed the library directly from their server. It seems like it crashes > at the var hot expression var hot statement > > Here's my html file: > > {{extend 'layout.html'}} > > > <div id="example"></div> > > > <script src="http://handsontable.com/dist/handsontable.full.js"></script> > <script> > var data = [ > ["", "Ford", "Volvo", "Toyota", "Honda"], > ["2014", 10, 11, 12, 13], > ["2015", 20, 11, 14, 13], > ["2016", 30, 15, 12, 13] > ]; > > > var container = document.getElementById('example'); > var hot = new Handsontable(container, { > data: data, > minSpareRows: 1, > rowHeaders: true, > colHeaders: true, > contextMenu: true > }); > </script> > > > <link rel="stylesheet" media="screen" href="http://handsontable.com/dist/ > handsontable.full.css"> > > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

