Re: [web2py] Re: flot charts are not getting displayed

2016-09-27 Thread brooks lee
Got it! Had to update the jquery version.It's working now.Thanks Anthony. On Mon, Sep 26, 2016 at 4:43 PM, Anthony wrote: > On Monday, September 26, 2016 at 1:53:38 AM UTC-4, @brooks wrote: >> >> Thanks Anthony.I corrected the two things you pointed out and then >> che

Re: [web2py] Re: flot charts are not getting displayed

2016-09-25 Thread brooks lee
More generally, always check the browser Javascript console for errors. > > Anthony > > > On Saturday, September 24, 2016 at 7:05:25 AM UTC-4, @brooks wrote: >> >> Hi, >> I want to use flot charts in my application.I tried running an example >> which requi

[web2py] flot charts are not getting displayed

2016-09-24 Thread @brooks
Hi, I want to use flot charts in my application.I tried running an example which required jquery.js ,jquery.flot.js ,jquery.flot.navigate.js files.I uploaded all these files in the static/js folder and in the view I used I also uploaded some images and included them in the view as follows: ..

[web2py] Invalid login is shown when social login is used along the normal login(Auth)

2016-09-19 Thread @brooks
#x27;),100); {{pass}} {{end page_js}} Enter code here... When using social login ,it is getting redirected to this(https://energymanagement.rpxnow.com/redirect?loc=886356b0b22cc3d0fe90facabed8cea552c467e4which I do not understand).I am doing this for the first time.I have followed the ins

Re: [web2py] Re: wrong record getting selected in recursive select

2016-09-04 Thread brooks lee
he Restaurant table? > > Anthony > > > > > > On Friday, September 2, 2016 at 2:27:23 PM UTC-4, @brooks wrote: >> >> I want to select those records in the Menu table such that the name of >> the restaurant with id in the Menu.restaurant field >&

Re: [web2py] Re: wrong record getting selected in recursive select

2016-09-02 Thread brooks lee
I want to select those records in the Menu table such that the name of the restaurant with id in the Menu.restaurant field ==request.args(0).So,what should be the DAL query here? On Fri, Sep 2, 2016 at 6:51 PM, Anthony wrote: > indices=db(db.Menu).select() >> for index in indices: >> t=db(

Re: [web2py] Re: wrong record getting selected in recursive select

2016-09-01 Thread brooks lee
r/func() indices=db(db.Menu).select() for index in indices: t=db(index.restaurant.Name==request.args[0]).select(db.Menu.ALL).first() if t: record=db.Menu(t.id) form=SQLFORM(db.Menu,record).process() ......

[web2py] wrong record getting selected in recursive select

2016-09-01 Thread @brooks
ave one record in the Menu table now) The question is that the first record gets selected even if the condition is not true.I do not understand it.Please tell me what I am doing wrong.Any help is appreciated. Regards, Brooks -- Resources: - http://web2py.com - http://web2py.com/book (Documentat

[web2py] redirection using ajax with javascript variables passed in the url.

2016-09-01 Thread @brooks
I am doing the following to pass the javascript variable from the view to the controller: ##default/rough2.html {{extend 'layout.html'}} var x=document.getElementById("demo"); jQuery(document).ready(function(){ geolocation(); }) function geolocation() { if (navigator.geol

[web2py] Re: different table for every user

2016-06-18 Thread @brooks
ing a common filter. > > On Saturday, 18 June 2016 07:47:42 UTC-5, @brooks wrote: >> >> Hi, >> I am new to python as well as web2py.I am trying to make an application >> where i am thinking of having a different table for every user and store >> every user&#x

[web2py] passing arguments from view to a controller function

2016-06-18 Thread @brooks
Hi I am trying to make an online calendar.Now,to add an event to a particular date I m doing the following: -the user clicks on a date and an event window pops up and the event inserted is then added to the database. -so,when the user clicks the (date) element ,the "event" window has to pop up w

[web2py] different table for every user

2016-06-18 Thread @brooks
Hi, I am new to python as well as web2py.I am trying to make an application where i am thinking of having a different table for every user and store every user's data in his table.But i do not know how to do it?Moreover,is it better than just adding a "user" column in one single table? -- Re

Re: [web2py] Re: Single error message for radio group

2012-05-17 Thread Michael Brooks
I can't find any documentation of the hideerror feature, but looking at html.py, I don't see how the above example would work: INPUT( _type='radio', _name='age', _value='5', _id='age5', hideerror=True,value =self.request.vars['age']) The hideerror flag seems to work if you do this, though: inp