Not able to overwrite old value in Drupal.settings
I think you can not do it this way. Data Drupal.settings only run in first load. This data store in tag head of page.



When you call ajax your function was execute, but tag head don't reaload. So Data.settings don't change.