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




Reply via email to