Zdravim,<br>
<br>
jak pise kolega, do v Jythonu s tou promennou pracovat nepujde, ale
muzete ji vypsat Javascriptem az v prohlizeci document.write(tzo) ...<br>
<br>
S pozdravem Petr Hlavka.<br><br><div><span class="gmail_quote">On 9/8/05, <b class="gmail_sendername">David Michal</b> <<a href="mailto:david_michal@seznam.cz">david_michal@seznam.cz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>
<br>_______________________________________________<br>Python mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Python@py.cz">Python@py.cz</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.py.cz/mailman/listinfo/python" target="_blank">
http://www.py.cz/mailman/listinfo/python</a><br><br></blockquote></div><br>