<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2716.2200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm trying to create dynamic charts with ZGDChart
and a python script by passing values to the script from a page template form
using session data. It's working correctly in Mozilla. However, in Internet
Explorer, it only works correctly the first time the form is submitted. After
that, the chart continues to use the initial values each time. I can see that
the session data values are getting updated but the script isn't getting the new
values.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below is an example that illustrates the behavior.
Any suggestions as to what might be going on?</FONT><FONT face=Arial
size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I create a default ZGDChart object and set it to
Chart Type "Line_2D" and then select Python Script as the Data Method and
test.py as the selected script.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>------------ test.py -------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>session =
context.session_data_manager.getSessionData()<BR>return [(i, i) for i in
session.get('start'), session.get('end')]<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>------------ test.pt -------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR>
<head><BR> <title tal:content="template/title">The
title</title><BR> </head><BR> <body></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><div tal:define="global submit
request/form/submit | nothing"> <BR> <form action="test.pt"
method="POST"><BR> Start: <input
tal:attributes="value request/form/start | nothing" type="text" name="start"
value=""><br><BR> End: <input
tal:attributes="value request/form/end | nothing" type="text" name="end"
value=""><br><BR> <input type="Submit"
name="submit" value="Plot Specified Range"><BR>
</form><BR></div></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><div tal:condition="submit"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <span tal:define="dummy
python:request.SESSION.set('start',
request.form.get('start'));<BR>
dummy python:request.SESSION.set('end',
request.form.get('end'))"></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> <p><b>Plotting
range from <span tal:content="request/form/start">start</span> to
<span tal:content="request/form/end">end</span></b></p>
<BR> <img src="testchart"><BR>
</span><BR></div><BR></body><BR></html><BR></FONT></DIV></BODY></HTML>