title: Capture a div and save as jpeg
body: <p><code>#cap</code> is a div i want to capture. 
  I used <code>ctx.drawImage($('#cap').get(0),0,0,640,480);window.open(canvas.getDataURL('image/jpeg'));</code></p>
  
  <p>got a <code>Type error</code>
  and how do i send it to php to save as <code>a.jpeg</code></p>
  
  <p><strong>UPDATE</strong></p>
  
  <p><a href="http://jsfiddle.net/3qNJB/" rel="nofollow">http://jsfiddle.net/3qNJB/</a> is not working help <code>html2canvas is not a function</code></p>