Mark,
You mean your script retrieves the same content twice or more?
Opera could make problems with its strong content caching though.
IE and Firefox does not have such problems, I think.
I suggest to try to change the content's URL everytime to avoid caches like:
var rand = Math.floor(900000*Math.random()+100000);
var tree = xotree.parseHTTP(url+"?t="+rand);
This makes the URL changed and gets the whole of its response.
Try this at first.
--
Kawasaki Yusuke http://www.kawa.net/
* The XML-ObjTree Group is welcoming you!
http://tech.groups.yahoo.com/group/xml-objtree/
On 3/7/07, Mark Salamon wrote:
>
> Yusuke,
>
> I have been using your xotree library with some success, but I just
> encountered a problem I was hoping you could help me with.
>
> Here is the basic code (the simplest way of using your library), inside a
> javascript function:
>
> function xyz()
> {
> ...
>
> var xotree = new XML.ObjTree();
> xotree.force_array = ["flag"];
> xotree.attr_prefix = '@';
> var url = "...";
> alert(url);
> var tree = xotree.parseHTTP(url);
> alert("2");
>
> ...
> }
>
> The first time I call this function on a page running on IE, everything
> works fine. But when I call the function again on the same page, I get a
> type mismatch error when the code makes the parseHTTP() call. (This code
> works fine on Firefox, btw). I am using Request.js to get your code to
> work.
>
> Any thoughts on what could be going wrong?
>
> Thanks!
>
> Mark Salamon