Announcement Announcement Module
Collapse
No announcement yet.
DWR Issue - Listing Users doesn't load after add/edit user Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DWR Issue - Listing Users doesn't load after add/edit user

    function addEditUser()
    {
    UserManager.saveUser( document.forms[0].id.value, document.forms[0].username.value,
    document.forms[0].password.value
    );
    listUsers();
    }

    function listUsers()
    {
    UserDwr.getUsersDwr(renderTable);
    }

    var renderTable = function(data) {
    if (data.length > 0) {
    dwr.util.setValue('div1', data);
    openUserDiv(1);
    }
    }

    After Add/Edit/Delete User, When redirected to listUsers(), the contents of the User Div doesn't get updated. It shows the previously contained values.

    I have to manually click through the link to get it updated.

    thanks
    srinath
Working...
X