Jquery camera in save mode does not save file
<p>When using <a href="http://www.xarg.org/project/jquery-webcam-plugin/" rel="nofollow">jquery camera</a> in "save" mode, it seems to have no effect. I tried calling the url in "webcam.save" manually, it it worked fine. It seems that jquery camera is not working correctly. Does anyone have any ideas?</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
    &lt;title&gt;Registration&lt;/title&gt;
    &lt;script type="text/javascript" src="http://localhost/ra/js/jquery.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://localhost/ra/js/jquery.webcam/jquery.webcam.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;Register&lt;/h1&gt; 
&lt;h4&gt;Picture&lt;/h4&gt;
&lt;div id="picture"&gt;&lt;/div&gt;

&lt;input type="button" id="take_picture" value="Take Picture" /&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;script type="text/javascript"&gt;
 $("#picture").webcam({
        width: 320,
        height: 240,
        mode: "save",
        swffile: "http://localhost/ra/js/jquery.webcam/jscam.swf",
        onTick: function() {},
        onSave: function() {},
        onCapture: function() {},
        debug: function() {},
        onLoad: function() {}
});

$("#take_picture").click(function()
{
    webcam.save("http://localhost/ra/index.php/registration/do_upload_picture");
});
&lt;/script&gt;
</code></pre>
