title: JQuery split ajax response html problem
body: <p>I have an ajax function in <em>home.php</em> that give me back this html response from <em>elaborate.php</em></p>
  
  <p>in <strong><em>elaborate.php</em></strong> i have this summarized situation:</p>
  
  <pre><code>if(a&lt;b)
   {echo "yes.";}
  else
   {echo "no.";}
  
  echo&lt;&lt;&lt;EO
  insert a title...aand something more!
  EO;
  </code></pre>
  
  <p>back in <strong><em>home.php</em></strong> I want to split in two the response I get,cause I need to use each part in different situations.<br>
  Let's call it '<em>response</em>' I did this:</p>
  
  <pre><code>var splitResult=response.split(".",2);  
  var yesNo=splitResult[0];  
  var article=splitResult[1];
  alert(yesNo+article);
  
  if(yesNo=='yes'){/*do something*/}
  $(article).appendTo("#myDiv");
  </code></pre>
  
  <p>The problem this and you can simply understand by looking at the <strong><em>alert</em></strong>:</p>
  
  <pre><code>yes  
  insert a title
  /*the alert doesnt show the rest of article var cause the dot:"...and something more!"*/
  </code></pre>
  
  <p>the split function is splitting again even it i put the limit of 2..why??  </p>
  
  <p>thanks guys<br>
  Luca</p>