<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">Zdravim,<br>
pise nekdo z vas v Jythonu?<br>
Potreboval bych nejakym zpusobem v Jython zpracovat promenou, kterou mi
vrati funkce v JavaScriptu. Prosim nevite nekdo jak na to?<br>
Diky,<br>
DM<br>
<br>
Priklad:<br>
<br>
from javax.servlet.http import HttpServlet<br>
<br>
class testik (HttpServlet):<br>
def doGet(self,request,response):<br>
self.doPost (request,response)<br>
<br>
def doPost(self,request,response):<br>
out = response.getOutputStream()<br>
response.setContentType ("text/html")<br>
<br>
print >>out, '<html><body>'<br>
print >>out, '''<br>
<script type="text/javascript" language="javascript"><br>
<!--<br>
var tzo=(new Date().gettimezoneOffset()/60)*(-1);<br>
// --><br>
</script> <br>
'''<br>
print >>out, 'No a jak ted zobrazit promenou tzo? :', tzo<br>
print >>out, '</body></html>'<br>
<br>
<br>
</font>
</body>
</html>