Hi Dan,
In partial update, the URL is the current URL of the web page, which is obtained from the environmental variable SCRIPT_NAME and QUERY_STRING. The SCRIPT_NAME and QUERY_STRING are standard CGI variables. As far as I know, both Apache and IIS (and other web servers I know of) support these variables. See:
http://en.wikipedia.org/wiki/Common_Gateway_Interface
The idea is that if the charting script is executed because the browser access a certain URL, then using the same URL should cause the charting script to be executed again. The charting script can then update the chart. The SCRIPT_NAME and QUERY_STRING is used to determine which URL the browser is currently using.
The URL in the setImageURL is only used as the URL for the image. In many case, the image URL is not related to the URL of the script. For example, the script may be in a "cgi-bin" subdirectory, while the image can be a temporary image file in a normal web document directory. So the image URL may not be suitable to be used to "callback" the original script.
Regards
Peter Kwan |