Passing javascript variable to python

Posted by William S. on Stack Overflow See other posts from Stack Overflow or by William S.
Published on 2010-05-24T05:34:38Z Indexed on 2010/05/24 5:40 UTC
Read the original article Hit count: 300

Filed under:
|

Hi,

for example:

#!/usr/bin/python
print "This is python."

print "<script type="text/javascript">
          var pass_to_python = new Number(7)
       </script>"

the_number = pass_to_python???

How do i get the pass_to_python in python?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about python