Webchart zoom
Posted: Thu Jul 13, 2006 8:57 pm
Hi,
Using WebChart in ASP.NET application we found that the Internet Explorer and Firefox cache the rendered image during zooming.
How to reproduce:
1. Show a Chart on the webpage
2. Zoom
3. Unzoom
4. Show an another chart
5. Zoom
6. Unzoom -> You will see the first Chart ( No event on the webserver, browser restore the image from the cache)
During the investigation of the problem we found the following:
The URL of the page when chart is unzoomed (step 3 and 6) was:
Chart.aspx?chart=WebChart1&zoom=0
The browser noticed no change in URL -> it restored the image from the cache!
We found a solution for this problem, but it is not too elegant:
1. Firefox:
- type about:config in the address field and click Go
- set browser.cache.check_doc_frequency to 1
(more information about about:config see http://kb.mozillazine.org/Firefox_:_FAQ ... ig_Entries)
2. Internet Explorer
- Tools / Internet Options...
- on General Page / Temporary Internet files section click Settings...
- select Every visit to the page option
I said that this is not an elegant solution, because you have to modify the browser configuration at all clients.
Have you another idea how to eliminate this problem?
(We suggest to add a random string parameter to the URL during zooming for example, GUID, like this:
Chart.aspx?chart=WebChart1&zoom=0&guid=a12345-b1234-...)
Best regards,
Gabor Varga
P.S. We found an another solution (http://www.dotnetbips.com/articles/disp ... spx?id=288) but we did not tested yet...
Using WebChart in ASP.NET application we found that the Internet Explorer and Firefox cache the rendered image during zooming.
How to reproduce:
1. Show a Chart on the webpage
2. Zoom
3. Unzoom
4. Show an another chart
5. Zoom
6. Unzoom -> You will see the first Chart ( No event on the webserver, browser restore the image from the cache)
During the investigation of the problem we found the following:
The URL of the page when chart is unzoomed (step 3 and 6) was:
Chart.aspx?chart=WebChart1&zoom=0
The browser noticed no change in URL -> it restored the image from the cache!
We found a solution for this problem, but it is not too elegant:
1. Firefox:
- type about:config in the address field and click Go
- set browser.cache.check_doc_frequency to 1
(more information about about:config see http://kb.mozillazine.org/Firefox_:_FAQ ... ig_Entries)
2. Internet Explorer
- Tools / Internet Options...
- on General Page / Temporary Internet files section click Settings...
- select Every visit to the page option
I said that this is not an elegant solution, because you have to modify the browser configuration at all clients.
Have you another idea how to eliminate this problem?
(We suggest to add a random string parameter to the URL during zooming for example, GUID, like this:
Chart.aspx?chart=WebChart1&zoom=0&guid=a12345-b1234-...)
Best regards,
Gabor Varga
P.S. We found an another solution (http://www.dotnetbips.com/articles/disp ... spx?id=288) but we did not tested yet...