[jQuery] Re: xml parsing error
Are you loading that xml file locally? That may be the problem: try something like this for local xml file access: if($.browser.msie && location.toString().indexOf('file') == 0) { // stupid IE won't load local xml files with XMLHttpRequest var xml = document.createElement("xml"); xml.validateOnParse = false; //avoid DTD errors (if it's an issue) xml.src = path; xml.onreadystatechange = function() { if(xml.readyState == "interactive") { var xmldoc = xml.XMLDocument; document.body.removeChild(xml);callback(); } } document.body.appendChild(xml); } Hope it helps David http://ontologyonline.org On Jun 19, 12:35 am, koko <[EMAIL PROTECTED]> wrote: > no alerts at all in IE , I tried it on different systems (3 pcs) , but > no alert shows ... I followed it with firebug and I discovered that IE > does not enter success function at all. > > thanks for replying > > On Jun 18, 4:54 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > > > well for meit works in ff3, ff2, ie6, ie7, ie8b1 and opera 8 and opera 9.5b > > also safari 3(windows xp) > > > I get two alert pop up first > > 0-1 > > then > > 1-2 > > > what is not working for you? double check that you have no errors syntax / > > mark up > > > every time I try this it works fine - whatever browser I opt for. > > > the first number is the iteration the second the data in the element > > 2008/6/18 koko <[EMAIL PROTECTED]>: > > > > Thanks but it's not working !!! I'm using IE7 for testing , maybe in > > > IE6 it's wroking > > > > any solution?
[jQuery] Re: xml parsing error
no alerts at all in IE , I tried it on different systems (3 pcs) , but no alert shows ... I followed it with firebug and I discovered that IE does not enter success function at all. thanks for replying On Jun 18, 4:54 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > well for meit works in ff3, ff2, ie6, ie7, ie8b1 and opera 8 and opera 9.5b > also safari 3(windows xp) > > I get two alert pop up first > 0-1 > then > 1-2 > > what is not working for you? double check that you have no errors syntax / > mark up > > every time I try this it works fine - whatever browser I opt for. > > the first number is the iteration the second the data in the element > 2008/6/18 koko <[EMAIL PROTECTED]>: > > > > > Thanks but it's not working !!! I'm using IE7 for testing , maybe in > > IE6 it's wroking > > > any solution?
[jQuery] Re: xml parsing error
well for meit works in ff3, ff2, ie6, ie7, ie8b1 and opera 8 and opera 9.5b also safari 3(windows xp) I get two alert pop up first 0-1 then 1-2 what is not working for you? double check that you have no errors syntax / mark up every time I try this it works fine - whatever browser I opt for. the first number is the iteration the second the data in the element 2008/6/18 koko <[EMAIL PROTECTED]>: > > > Thanks but it's not working !!! I'm using IE7 for testing , maybe in > IE6 it's wroking > > any solution? >
[jQuery] Re: xml parsing error
Thanks but it's not working !!! I'm using IE7 for testing , maybe in IE6 it's wroking any solution?
[jQuery] Re: xml parsing error
first off I am no jquery or javascripot guru - I got this working in both ie6 & ff3 in parse.js uncomment the ajax attempt and try the following $.ajax({ type: "GET", url: path, dataType: "xml", success: function(data) { /* perform a function on each *'ele' *inside *'root'* and simply alert the index (i) and contained text value (v) */ $.each($('root ele', data), function(i, v){ alert(i +' - ' + $(v).text()); }); } }); perhaps a more esteemed jquerian will expand / improve upon this (it works but perhaps there is a draw back I am unaware of) - S 2008/6/17 koko <[EMAIL PROTECTED]>: > > Hello, > > I have a problem and I googled it for the solution but it seems that > there is no solution for it !! > > I used $.get and $.ajax but the same problem > > could you take a look at the source just open index.html in IE > and FF and see the difference > > also take a look at the comments in parse.js ... > > http://www.4shared.com/file/51709870/9e323fe8/xml.html > > > appreciate it >