[jQuery] AJAX get() Prob. retrieving XML Dom from file system [u]

2006-08-09 Thread devsteff [c]
If I load an XML document with the AJAX get("http://localhost...",myCallback,"xml";) function from my server I am able to use this XML object inside a jQuery function like $("user adress", xmlDoc).each(...) to process the nodes. If I try to load the same XML content from the file system via get("

Re: [jQuery] AJAX get() Prob. retrieving XML Dom from file system [u]

2006-08-09 Thread Mohsen Saboorian
I think that file:/// protocol cannot be used for ajax (at least inside FF, because of security issues). IE can convert a String into DOM using document.createElement("your dom strin here") On 8/9/06, devsteff [c] <[EMAIL PROTECTED]> wrote: > > If I load an XML document with the AJAX > get("http:

Re: [jQuery] AJAX get() Prob. retrieving XML Dom from file system [u]

2006-08-09 Thread devsteff [c]
I've fixed the problem so that a given type of xml forces an responseXML regardless of the response header. For me it's ok for local AJAX requests and also for remote requests wich provide a content-type response header. I changed: httpData: function(r,type) { var ct = r.getResponseHead