Klaus Hartl schrieb:
> Jörn, not sure if that helps at all, but you can load an xml file from
> the local file system like this (Mozilla and IE):
>
>
> XML.loadAsync = function(url, callback) {
>      var xmldoc = XML.newDocument();
>      if (document.implementation && 
> document.implementation.createDocument) {
>          xmldoc.onload = function() { callback(xmldoc); };
>      } else {
>          xmldoc.onreadystatechange = function() {
>              if (xmldoc.readyState == 4) callback(xmldoc);
>          }
>      }
>      xmldoc.load(url)
> }
>
> Thanks to David Flanagan and my new JavaScript bible :-)
>   
Sounds like a must-buy. Thanks, I'll try that one. May help to fix quite 
a lot of bugs concerning async calls.

-- Jörn

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to