WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Problem with XLoadTree in IE, Alfredo Ramos, January 30, 2002
     Re:Problem with XLoadTree in IE, Erik Arvidsson, January 30, 2002
         Re:Problem with XLoadTree in IE, Alfredo Ramos, January 30, 2002
             Re:Problem with XLoadTree in IE, Alfredo Ramos, January 31, 2002
                 Re:Problem with XLoadTree in IE, Erik Arvidsson, January 31, 2002

Subject: Re:Problem with XLoadTree in IE From: Alfredo Ramos Date: January 31, 2002

I solve it!

The problems is that XTree sets a cookie for each expanded folder (to store its state), the maximun amount of cookies for a server that the browser can keep is 20 (see http://www.netscape.com/newsref/std/cookie_spec.html). Then when the amount of cookies of the tree reaches 20, the session cookie is removed and the session is lost.

This behaviour happens only with IE5+ but not with Mozilla (I don't know the reason).

Then the solution I found is to remove all calls to the setCookie() function.

Regards,

Alfredo

From: Alfredo Ramos
Sent: January 30, 2002
Subject: Re:Problem with XLoadTree in IE

Weird!

However it works perfectly in Mozilla (0.9.7), I can expand all the folders. I found out that when I try to expand a node before it stops working, the session has been already lost. I mean, looks like the ActiveX object or IE is loosing the session after 20 XML/HTTP requests.

The request 21 doesn't pass through, as it needs to be in a logged session. But still don't understand how can I suddenly loose my session.

Alfredo.

From: Erik Arvidsson
Sent: January 30, 2002
Subject: Re:Problem with XLoadTree in IE

I cannot reproduce this. I was able to load a xml file with more than 100 of items and folders.

The error you are getting happens because the file cannot be parsed. Try alerting oXmlDoc.xml or go up one level and find the XmlHttp and look at the resonseText property. Something went wrong during the load phase and the error was not handled correctly.

erik

From: Alfredo Ramos
Sent: January 30, 2002
Subject: Re:Problem with XLoadTree in IE

Hi,

I have started to use XLoadTree, but I am getting a problem when expanding more than 20 folders.

I get the condition oXmlDoc.documentElement == null in the _xmlFileLoaded function, which stops the tree from loading items.

The xml documents are generated dynamically, and all of them are working fine, I tested them before. But whenever I expand more than 20 folders in whatever order, I will get this condition.

Apart of not loading the XML document, IE losses the session with my server, and a new sessions has to be started. I have experience this in several PCs with IE5.5 and IE6

Has anyone tested for a case like this?.

Any idea?

Thank you.







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