Thursday, June 6, 2013

JQuery XML find method problem - Webkit and chrome fix




If you have xml element tag like this <gml:featureMember>, then jQuery(xml).find("gml\\:featureMember").each(function(){}); will not work across all the browsers, it works in IE and firefox.


To fix it, use as below

$(xml).find("gml\\:featureMember,featureMember").each(function() {
// Do stuff
});
 
 

This works across all the browser.
 

2 comments:

  1. Thank you so much Bijay, you saved the day!

    ReplyDelete
  2. However, the COVID-19 pandemic put an end to its consideration and the invoice ended up expiring in May 2020. Since states are able to to} make their own guidelines concerning sports activities betting, what you'll be able to|you possibly can} and may't wager on differs depending on 카지노 사이트 where you might be}. From which states solely allow in-person sports activities betting to which states don't allow prop bets on college sports activities, lots of|there are many} variations you should be|you have to be|you ought to be} conscious of. No, there are no retail sportsbooks working in Florida right now. As noted, the negotiated 2021 tribal-state compact would have allowed the Seminoles to open retail sportsbooks of their casinos and to partner with different pari-mutuel amenities to open sportsbooks. The new tribal-state compact would have allowed retail sportsbooks at Seminole Tribe-owned casinos.

    ReplyDelete