Yes, it's better to use .reload() rather than .load(), as that will call
the .web2py_ajax_page() function and load it as a component instead of just
using a standard ajax request. Another option is:
response.js = 'web2py_component("%s", "grid_course");
web2py_component("%s", "grid_pricelist");' % \
(URL('default', 'grid_course.load'), URL('default',
'grid_pricelist.load'))
Anthony
On Sunday, June 16, 2013 4:47:09 PM UTC-4, step wrote:
>
> Yes, this works too
> response.js =
> "$('#grid_course').get(0).reload();$('#grid_pricelist').get(0).reload()"
>
> On Sunday, June 16, 2013 10:41:26 PM UTC+2, step wrote:
>>
>> I do have that function. Maybe that function itself is giving me a clue,
>> on the fifth line
>> var statement = "jQuery('#" + target + "').get(0).reload();";
>>
>> so adding .get(0) after jQuery() enables reload(), of course...
>>
>>
>> On Sunday, June 16, 2013 10:34:28 PM UTC+2, step wrote:
>>>
>>> I will check but I doubt it's a bug, jQuery doesn't have a reload
>>> function, js does.
>>>
>>>>
>>>>>>
--
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.