|
[jQuery] Bug 164 Issues was: Re: I have a problem with XPATH on IE6 with aj: msg#01163lang.javascript.jquery
John, I see that Bug #164 has closed. I just downloaded the current Bug and this does not fix the problem I am having. To test it hit: http://imaptools.com:8081/maps/demo.html?address=01863 and double click on the map. see /js/imaptools-demo.js line: 229 Maybe I should be using different functions to do this, I'm open to suggestions, but this works fine in FF. Thanks, -Steve John Resig wrote: > Hi Stephen, > > This bug is related to one mentioned earlier - where IE has trouble > doing attribute searches in XML documents. You can watch this bug > report for when it'll be fixed: > http://jquery.com/dev/bugs/bug/164/ > > But since it's so nasty, it'll probably be soon. > > --John > > On 10/11/06, Stephen Woodbridge <woodbri@xxxxxxxxxxxxxxx> wrote: >> I have done some additional testing and it looks like the xpath >> attribute selectors are broken for IE6 in jQuery 1.0.2 >> >> alert($("//feature", xml).text()); // works >> alert($("//feature[@typeName]", xml).text()); // js error >> >> BTW, there is a link under the textarea that will throw the xml into a >> separate page so it is more readable. >> >> -Steve >> >> Stephen Woodbridge wrote: >>> OK, I am obviously missing something here. My code works on FF 1.0.5, >>> Opera 8.5.4 and 9.0.2 but is throwing an error in IE6. I have located >>> the line generating the error (no thanks to the IE error message line >>> that is really bogus): >>> >>> http://imaptools.com:8081/maps/demo.html >>> >>> just double click on the map, and it generates an Ajax call. The xml is >>> loaded in the textarea under the map, which works fine. I then have a >>> schema hash the I loop thru and extract various items from the xml and >>> put them into html tables and stuff them into $("#rgeo2").html(str); >>> >>> The problem is occurring when I try to access the xml using xpath like: >>> >>> imaptools-demo.js:233 >>> >>> var description = $("//feature[@typeName='"+feature+"']/description", >>> xml).text(); >>> >>> This is the first xpath and it is generating the error. Like I said this >>> works fine in other browsers on is a problem in IE6 (have not tested it >>> in IE7, probably has problems in IE 5.5). >>> >>> Am I using this wrong? >>> Looking at the jQuery cheat sheet, I don't see .text() did that get >>> deprecated? what should I be using in that case? .val()? Nope val() >>> doesn't work. >>> >>> Any help would be greatly appreciated. >>> >>> -Steve >>> >>> This is kind of like chess ... it is easy to play, but takes some >>> thought and training to master! > > _______________________________________________ > jQuery mailing list > discuss@xxxxxxxxxx > http://jquery.com/discuss/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jQuery] Form plugin revisited ;-), Jörn Zaefferer |
|---|---|
| Next by Date: | Re: [jQuery] dimensions.js, Paul McLanahan |
| Previous by Thread: | Re: [jQuery] I have a problem with XPATH on IE6 with ajax response jQuery 1.0.2, John Resig |
| Next by Thread: | [jQuery] effects problem with jquery 1.0.2, David Duymelinck |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |