Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2018-05-26 Thread Krishnan Trikkadeeri
Thanks, Anthony. In fact I got to the old version on Google Search for AJAX cascading drop down. On Friday, May 25, 2018 at 9:07:34 PM UTC+5:30, Anthony wrote: > > On Friday, May 25, 2018 at 9:38:36 AM UTC-4, Krishnan Trikkadeeri wrote: >> >> The book I see here >>

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2018-05-25 Thread Anthony
On Friday, May 25, 2018 at 9:38:36 AM UTC-4, Krishnan Trikkadeeri wrote: > > The book I see here > still > has the old version? > That's an outdated version that was supposed to be an Italian translation (not sure why it is

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2018-05-25 Thread Krishnan Trikkadeeri
The book I see here still has the old version? On Tuesday, April 1, 2014 at 4:45:03 AM UTC+5:30, Anthony wrote: > > I updated the example in the book. > > On Monday, March 31, 2014 6:09:11 PM UTC-4, Anthony wrote: >> >> Yes,

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Keith Edmunds
Thanks Anthony. First, take grid out of BEAUTIFY -- not necessary. Thanks, done. Does db.t_dogs happen to have a field called name? If so, change the name of your extra input element to something other than name. No, it doesn't. Also, when typing in your input field, open the browser

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
Ajax request gets sent to the server. Yes - but I knew that because I get a change in the display. It just isn't the change expected. To reiterate, when the Add form is displayed - in other words, while the grid is *not* displayed - typing in the form displays the whole grid in the

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Keith Edmunds
Really helpful, thanks Anthony. One suggestion: Chapter 11 of the book, heading The ajax function, has exactly the code I used (that's where I got it from): form input name=name onkeyup=ajax('echo', ['name'], 'target') / /form May I suggest that your comment about URLs be included in that

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
Yes, that should be fixed. On Monday, March 31, 2014 3:47:54 PM UTC-4, backseat wrote: Really helpful, thanks Anthony. One suggestion: Chapter 11 of the book, heading The ajax function, has exactly the code I used (that's where I got it from): form input name=name

Re: [web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-31 Thread Anthony
I updated the example in the book. On Monday, March 31, 2014 6:09:11 PM UTC-4, Anthony wrote: Yes, that should be fixed. On Monday, March 31, 2014 3:47:54 PM UTC-4, backseat wrote: Really helpful, thanks Anthony. One suggestion: Chapter 11 of the book, heading The ajax function, has

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-30 Thread backseat
Hi All Am I doing something wrong on this group? I've highlighted what looks like a bug to me, but I've had no response. Is this the wrong place to discuss what looks like a bug? Thanks Keith -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-30 Thread Anthony
Would help to see the controller code. What is form, and why are grid and form inside BEAUTIFY? What are you really trying to do? On Sunday, March 30, 2014 5:39:21 AM UTC-4, backseat wrote: Hi All Am I doing something wrong on this group? I've highlighted what looks like a bug to me, but

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-30 Thread backseat
On Sunday, 30 March 2014 14:08:38 UTC+1, Anthony wrote: Would help to see the controller code. Here's the code from a test app I've put together to simplify: def index(): grid = SQLFORM.grid(db.t_dogs, create=True, csv=False,

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-30 Thread Anthony
First, take grid out of BEAUTIFY -- not necessary. Does db.t_dogs happen to have a field called name? If so, change the name of your extra input element to something other than name. Also, when typing in your input field, open the browser developer tools and see if (a) you get any JavaScript

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-26 Thread backseat
I have slightly more information now. Once the SQLFORM.grid 'Add' form is displayed, typing in the 'name' form does not call the echo() function. This seems like a bug to me. The echo() function is called as expected when the grid is shown, but not when the Add form is shown - but there is

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-25 Thread backseat
Bump...is is possible to use AJAX in a SQLFORM.grid Add form? -- 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

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-17 Thread Derek
Chances are you didn't define a view for 'echo' so it's using a default. On Sunday, March 16, 2014 1:09:53 PM UTC-7, backseat wrote: Is it expected that AJAX can be used within the Add form of a SQLFORM.grid? If so, what am I doing wrong (or is it a bug)? Thanks, Keith -- Resources: -

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-17 Thread backseat
Thanks Derek, but I don't think that's it. The example in the book doesn't define a view for 'echo', and even I do define one that explicitly calls the grid view, the problem persists (is there a view for just the Add form?). -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How to use AJAX within a SQLFORM.grid 'add' form

2014-03-16 Thread backseat
Is it expected that AJAX can be used within the Add form of a SQLFORM.grid? If so, what am I doing wrong (or is it a bug)? Thanks, Keith -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -