WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 XLoad Tree & Images, Mario Rodrigues, January 15, 2004
     Re:XLoad Tree & Images, Erik Arvidsson, January 17, 2004
         Re:XLoad Tree & Images, Tony Lavey, March 22, 2004

Subject: Re:XLoad Tree & Images From: Tony Lavey Date: March 22, 2004

I think I may have found a way to make the images cache (it works for me at least).

It's a two step process for me to get this working, one with a local JS file and the other with the XML data returned from the server.

1) In the JS file, I simply cache the image like your normally would in JS:

webFXTreeConfig.rootIcon = "images/folder.gif";
webFXTreeConfig.openRootIcon =
"images/openfolder.gif";

image1 = new Image();
image1.src =
"images/folder.gif";
image1 =
new Image();
image1.src =
"images/openfolder.gif";

2) On the server side, (I'm using Java in this case), I set the "expires" header for the XML results (I set it to an old date to automatically expire the results):

response.setHeader("Expires", "Mon, 01 Jan 2001 00:00:00 GMT");  // Java example

I'm not certain if expiring the page (setting an old date) is or if simply using the "Expires" header at all is fixing it.

Hope this helps!

Tony

From: Erik Arvidsson
Sent: January 17, 2004
Subject: Re:XLoad Tree & Images

This is a known IE bug that has been around since IE4. Preloading images does not help. Im actually not sure there is any workaround.

Using Mozilla you won't have this problem.

erik





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX