Right. Looks like I oversimplified the (your?) approach. Thanks for the quick reply Anthony, I appreciate it.
On Tuesday, November 18, 2014 2:39:37 PM UTC-5, Anthony wrote: > > On Tuesday, November 18, 2014 1:41:18 PM UTC-5, Rob0 wrote: >> >> Thanks Niphlod. >> >> I realize this solution was probably using the response.js in a manner >> for which it wasn't intended. >> >> I took the idea from >> http://stackoverflow.com/questions/20633959/ajax-response-in-web2py >> I guess that's not the right approach - or perhaps I deviated from the >> idea. >> >> Is there a better approach which lets you have two ajax components, one >> for the form and one for the results? >> > > Actually, the better approach is in the very Stack Overflow answer that > you referenced. That answer does not do what you did (i.e., return the > entire grid via response.js), but instead includes two separate components > and uses response.js to issue a one-line command that updates the second > component whenever the first component submits a form. > > Anthony > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.