Search the web
Sign In
New User? Sign Up
xml-objtree · XML.ObjTree Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: xotree   Message List  
Reply | Forward Message #8 of 8 | Next >
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



Sun Mar 11, 2007 5:04 am

kawa.kawa
Offline Offline
Send Email Send Email

Forward
Message #8 of 8 | Next >
Expand Messages Author Sort by Date

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...
Kawasaki Yusuke
kawa.kawa
Offline Send Email
Mar 11, 2007
5:05 am
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help