[web2py] Re: orderby on multiple columns

2014-12-13 Thread Jeremiah Peterson
Thank you, that worked great. Really appreciate it. Jeremiah On Saturday, December 13, 2014 8:58:23 PM UTC-6, Anthony wrote: > > If you want the newest first, it should be ~db.news.posted_on. > > Anthony > > On Saturday, December 13, 2014 9:30:05 PM UTC-5, Jeremiah Peterso

[web2py] orderby on multiple columns

2014-12-13 Thread Jeremiah Peterson
I'm having troubles getting the orderby to work with multiple columns, perhaps I'm not understanding how it should work. I have news articles that get ranked based on the number votes and time passed. What I'm trying to do is order the news articles first by rank, then if the ranks are the sa

[web2py] Re: jQuery - Examples from book not working.

2014-11-30 Thread Jeremiah Peterson
@Anthony, Thanks for the tip. I found this in the layout.html. Since I'm not using any drop down menus I've just removed it and everything seems to be working as expected now. jQuery(document).ready(function(){jQuery('ul.web2py-menu').superfish({delay:400});}); I think it would be hel

[web2py] Re: jQuery - Examples from book not working.

2014-11-30 Thread Jeremiah Peterson
skip that in my views and assume that those jquery actions won't try to run until the document is ready? Thanks again for looking. Jeremiah On Sunday, November 30, 2014 9:42:59 AM UTC-6, Jeremiah Peterson wrote: > > I don't believe so. In my app that I'm working on where the .

[web2py] Re: jQuery - Examples from book not working.

2014-11-30 Thread Jeremiah Peterson
0 AM UTC-6, Anthony wrote: > > Do you accidentally load jQuery twice? > > On Sunday, November 30, 2014 9:28:38 AM UTC-5, Jeremiah Peterson wrote: >> >> I did load the example in a new dummy app and it works like it should. >> Any idea what would have changed, or what I

[web2py] Re: jQuery - Examples from book not working.

2014-11-30 Thread Jeremiah Peterson
ething extremely wrong is going on with your javascript. the "ready" > call is pretty much the default way of handling events once the document > has been loaded. > > On Sunday, November 30, 2014 7:16:04 AM UTC+1, Jeremiah Peterson wrote: >> >> Here's the exam

[web2py] jQuery - Examples from book not working.

2014-11-29 Thread Jeremiah Peterson
Here's the example from the book, which isn't working for me. Hello World jQuery(document).ready(function(){ jQuery('.one').click(function(){jQuery('.two').slideToggle()}); }); This code does work, just removing the ready. Hello World jQuery('.one').click(function(){jQuery('.two').s

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-08 Thread Jeremiah Peterson
that there is an issue with show_if > https://groups.google.com/forum/#!topic/web2py/dnbPyALwZKE > > > On Friday, November 7, 2014 5:37:27 PM UTC-5, Jeremiah Peterson wrote: >> >> Thank you very much, I really appreciate it. That worked perfectly! >> >> On Frid

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-07 Thread Jeremiah Peterson
ot the > whole row (AFAIK). > > But, you can get it work by including an element with the same id as the > row that is being hidden, e.g. > > Link: {{=form.custom.widget.link}} > > Denes. > > On Thursday, November 6, 2014 8:56:10 PM UTC-5, Jeremiah Peterson wro

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-07 Thread Jeremiah Peterson
ustom.end}} On Thursday, November 6, 2014 7:35:57 PM UTC-6, Massimo Di Pierro wrote: > > Can you show us your form? Do you use {{=form.custom.widget[field]}} or > . The latter is not supposed to work > > On Thursday, 6 November 2014 09:45:10 UTC-6, Jeremiah Peterson wrote:

[web2py] Re: conditional form feilds when using =form.custom.widget.begin

2014-11-07 Thread Jeremiah Peterson
On Thursday, November 6, 2014 7:35:57 PM UTC-6, Massimo Di Pierro wrote: > > Can you show us your form? Do you use {{=form.custom.widget[field]}} or > . The latter is not supposed to work > > On Thursday, 6 November 2014 09:45:10 UTC-6, Jeremiah Peterson wrote: >

[web2py] conditional form feilds when using =form.custom.widget.begin

2014-11-06 Thread Jeremiah Peterson
in my controller I have db.news.link.show_if = (db.news.category==1) In my view if I just use {{=form}} then it will only show the 'link' field if the category field is set to 1. However if I use {{=form.custom.begin}} so can I can place my form fields in the order I want, it doesn't make