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.
 

5 comments:

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

    ReplyDelete
  2. The article was up to the point and described the information very effectively. Thanks to blog author for wonderful and informative post.
    website development

    ReplyDelete
  3. 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
  4. It's good for lower temperatures, which partially accounts for its use in aerospace and refrigeration. Aluminum sheet metallic can also be|can be} used for automotive parts, electrical units, and cooking vessels. Aluminum metallic sheet is right to be used in food and chemical precision machining packaging. It doesn't react with many other materials too easily and due to this fact there isn't a|there is not any} concern for the aluminum sheet to negatively result on} the food. Due to its straightforward maintenance, metallic is a good option for public high-traffic areas.

    ReplyDelete