title: Crawling and parsing Javascript elements
body: <p>I try to get info from a website which uses <em>Javascript</em> to show onclick the phonenumber of the items/companies.</p>
  
  <p>Crawling that with PHP curl or xpath did not let me find a solution how to trigger this events and than keep on crawling.</p>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>&lt;a onclick="show(2423,'../entries.php?eid=2423',1);
  </code></pre>
  
  <p>for info here the function too</p>
  
  <pre><code>function show(info_id,qpath,swimage){
  expandit(info_id,0,swimage);
  if(document.getElementById('load_'+info_id)) {
      ajax_loadContent('cont_td_'+info_id,qpath);
  }
   }
  </code></pre>
  
  <p>Is this possible to do with PHP/Xpath/DOM or what do you recommend to do to achieve this?
  Any chance for "debugging" the code to see which url to call?</p>
  
  <p>THanks for your concern
  And have really great FESTIVITIES</p>