How to pass javascript prompt value to a view
<p>Is there a way to pass a js popup value directly to a python/django view, or is necessary to capture this value with a javascript function and then do an ajax call?</p>

<p>For example:</p>

<pre><code>&lt;form&gt;
    &lt;input type="text" name="name"/&gt;
    &lt;input type="submit" id="submit"/&gt;
&lt;/form&gt;

&lt;script type="text/javascript"&gt;
function myFunction() {

$('#submit').click(function() { 
    var name=prompt("Please enter your name","");
  });
}
&lt;/script&gt;
</code></pre>

<p>If it can be done directly, how would this be done?</p>
