title: Ajax request quoting
body: <p>I am trying to send an Ajax request using the prototype framework that adds a new row to my table (existing) on success. 
  I have already made successful requests with other functions but i can't get this one to work. I am sure <strong>it has something to do with my quoting in the insert html (the nested quotes).</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/1317107/javascript-function-not-get-called-when-arguments-from-php">this</a> question helped me out for my previous function but in this one the quoting is still more complex.</p>
  
  <p><a href="http://groups.google.com/group/prototype-scriptaculous/browse_thread/thread/14475a5eaea9ac42" rel="nofollow noreferrer">this</a> is a thread on inserting the html</p>
  
  <pre><code>new Ajax.Request('switch.php', {
      method: 'post',
      postBody: 'action=addHour&amp;addday=' + addday + '&amp;addhour=' + addhour + '&amp;addminute=' + addminute + '',
      onSuccess: ($('tbl_' + addday + '').down('tr').insert({
          Bottom: "&lt;TR ALIGN=LEFT VALIGN=TOP&gt;&lt;TD id='var_" + adday + "" + addhour + "" + addminute + "' value='" + addhour ":" + addminute + "'&gt;&lt;/TD&gt;&lt;TD id='del_" + adday + "" + addhour + "" + addminute + "'&gt;&lt;input type='button' value='Del' onClick='deleteHour(" + addhour + "" + addminute + ", " + addday + ")'&gt;&lt;/TD&gt;&lt;/TR&gt;"
      }))
  });
  </code></pre>
  
  <p>I am quite new to web development, if someone could point me in the right direction (some explanation about the quoting order) that would help a lot,</p>
  
  <p>thx,</p>
  
  <p>M.</p>