Re: Capturing a var from JavaScript

2009-10-19 Thread Carsten Haese
Victor Subervi wrote: > It doesn't work. What I want is to capture winX and winY and use them in > python. How? Since you're still not heeding the advice from this article, please allow me to refer you to it again: http://catb.org/~esr/faqs/smart-questions.html -- Carsten Haese http://informixdb.

Re: Capturing a var from JavaScript

2009-10-19 Thread Victor Subervi
Yeah, I know, but if I use CGI then I have to pass variables in the URL, and I was trying to avoid that. Thanks, V On Mon, Oct 19, 2009 at 12:50 PM, geremy condra wrote: > On Mon, Oct 19, 2009 at 11:41 AM, Victor Subervi > wrote: > > Hey, that's great! Can do it in python? Fantastic! How? How d

Capturing a var from JavaScript

2009-10-18 Thread Victor Subervi
Hi; I have the following code: #!/usr/bin/python def getResolution(): print 'Content-Type: text/html\n' print ''' http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd'> var winX = screen.width; var winY = screen.height; ''' x = eval('document.write(winX)') #document.write('Your screen re