jQuery posts error text when posting with ajax
<p>When I'm posting via ajax I'm sometimes getting extra characters posted for example.  If the text passed though ajax yo a php $_POST I end up getting:</p>

<blockquote>
  <p>This is my messagejQuery127638276487364873268_374632874687326487</p>
</blockquote>

<p>99% of the time posts pass though fine... I'm unsure how to capture and remove this error as it only happens some of the time.</p>

<pre><code>// this is the ajax that we need to post the footprint to the wall.
$('#submitbutton').click(function () {
    var footPrint = $('#footPrint').val();
            var goUserId = '1';
    $.ajax({
       type: 'POST',
       url: '/scripts/ajax-ProfileObjects.php',
       data: 'do=leave_footprint&amp;footPrint=' + footPrint + '&amp;ref=' + goUserId + '&amp;json=1',
       dataType: 'json',
       success: function(data){

            var textError = data.error;
            var textAction = data.action;
            var textList = data.list;

            if (textError == 'post_twice' || textError =='footprint_empty' || textError == 'login_req') {
            // display the error.

            } else {
            // lets fade out the item and update the page.

            }

     });

return false; });
</code></pre>
