Try replace
success: web2py_component('../groupUsers/{{=groupId}}'),
with
success: function() { web2py_component('../groupUsers/
{{=groupId}}'); },
On Jun 16, 12:02 pm, Jim Steil <[email protected]> wrote:
> Hi
>
> I have a component on my page that displays the auth_users that have
> membership the specific auth_group. I have some the following js to
> remove someone from a group:
>
> function deleteMembership(userId, groupId) {
> $.ajax({
> type: "POST",
> url:'../groupUserDelete',
> data:'userId=' + userId + '&groupId=' + groupId,
> success: web2py_component('../groupUsers/{{=groupId}}'),
> });
> }
>
> it is working except for my 'success' case. I'm trying to reload just
> the component and not the entire page. I've verified the rest of this
> works by specifying location.reload() in the success case and that
> successfully reloads then entire page. I'm trying to just reload the
> component. This javascript is in the .load file for the component. Any
> clues as to what I'm doing incorrectly?
>
> -Jim