Re: [web2py] jQuery in views

2011-09-22 Thread Michael Cobb
Bruno: I am getting an error on the following line from jquery.dataTables.js while trying to work on a HTML table. oSettings.aaSorting[i][1] = oColumn.asSorting[0]; saying that oColumn is undefined. Any quick idea as to the problem? Thanks, Mike On 9/21/2011 9:32 AM,

Re: [web2py] jQuery in views

2011-09-21 Thread Michael L. Cobb
Bruno: Thanks. I was hoping it was that easy. Mike On 9/21/2011 9:32 AM, Bruno Rocha wrote: in the view {{extend 'layout.html'}} $(document).ready(function () { # your code goes here }); On Wed, Sep 21, 2011 at 10:34 AM, Mike Cobb > wrote: I

Re: [web2py] jQuery in views

2011-09-21 Thread pbreit
What Bruno replied should work as long as your layout includes the line "{{include 'web2py_ajax.html'}}". web2py.ajax.html loads Jquery.

Re: [web2py] jQuery in views

2011-09-21 Thread Javier Quarite
You should put the path first in layout.html and in the same page you have to put the scripts In views you have to do this extend layout.html (you have to put something else but my keyboard is not working) On Wed, Sep 21, 2011 at 8:34 AM, Mike Cobb wrote: > I am trying to include some jQue

Re: [web2py] jQuery in views

2011-09-21 Thread Bruno Rocha
in the view {{extend 'layout.html'}} $(document).ready(function () { # your code goes here }); On Wed, Sep 21, 2011 at 10:34 AM, Mike Cobb wrote: > I am trying to include some jQuery functionality in one of the views > but can't seem to load the jQuery.js library correctly. Loo

[web2py] jQuery in views

2011-09-21 Thread Mike Cobb
I am trying to include some jQuery functionality in one of the views but can't seem to load the jQuery.js library correctly. Looking at the internals of web2py I see a lot of jQuery calls internally but can't seem to expose this capability in the views. Can someone show me/explain how to write jQ