title: Web2Py Ajax appending to DIV
body: <p>I'm trying to append content to my div with ID "this_div" using AJAX.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;a href='#' onclick="ajax('append?what=first',
  ['content'],'this_div')"&gt;click&lt;/a&gt;
  
  &lt;div id='this_div'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>def append():
      if request.vars.what == "first":
          something = "ABC"
      else:
          something = "DEF"
  
  return "&lt;script&gt;jQuery('#this_div').append('"+something+"')&lt;/script&gt;"
  </code></pre>
  
  <p>This loads the content of "something" to the div, but it doesn't preserve the previous content. Can anyone shed some light on why is it acting like that, please? I'm new to combination of Python/Web2Py/AJAX..</p>
  
  <p>Thanks!</p>