Thanks, Kevin - it's nice to know that I'm not alone and not doing anything stupid. I suspect, like you, that it is a security thing, which would be fine if IE actually generated a useful warning or error message. Instead it just doesn't work and generates zilch, nada, niente, bubkes, zip, zero...
One of these days Microsoft will get round to producing a real browser, rather than a standards-inimical piece of malware ;-\ Cheers Fred On Jun 5, 3:14 pm, kevinm9876 <kevinm9...@gmail.com> wrote: > I've never been able to get IE to work locally when using jquery to > parse XML. I am not sure what it is but I think it is a security thing > in IE. Once you put it on a server though, it should work (at least it > did for me). > > On Jun 4, 1:51 pm, fredriley <fred.ri...@gmail.com> wrote: > > > On Jun 2, 6:42 pm, jsuggs <jsu...@gmail.com> wrote: > > > > Basic answer, yes. If you copied and pasted the example html, then > > > the url parameter references "labels.xml", which would have to reside > > > in the same directory as where you saved the html file. Also, don't > > > forget that you also need the jquery file it references as well. > > > > So to more succinctly answer you question. You will need to have > > > three files in your local directory. > > > 1) The html file. > > > 2) The jquery file (named jquery.js in that example) > > > 3) The xml file (named labels.xml) > > > > That should solve your problem. > > > After further testing, your solution does solve the problem in Firefox > > and Opera but not in IE. So the test > > athttp://www.nottingham.ac.uk/~ntzfr/test/ajax/jquery/xml/jquery_xml1.html > > works fine in Firefox 3 and Opera online and locally with the "click > > here" link expanding, but fails locally in IE7 and of course there are > > no error messages. The following files are in the same directory: > > > jquery_xml1.html > > jquery.js > > labels.xml > > > This isn't the first time by far that IE has knackered my JS code (and > > CSS for that matter), and indeed IE routinely adds 50% or more to my > > webdev time, but I was hoping that jQuery functions always work cross- > > browser. I'm aiming towards something > > likehttp://www.nottingham.ac.uk/~ntzfr/test/ajax/jquery/xml/jquery_xml2.html > > where links read from a XML file are displayed in an iframe. > > > Any ideas why IE isn't behaving? If I can't get it to behave locally > > then this project's off :( > > > Cheers > > > Fred