Skip to content

Instantly share code, notes, and snippets.

@ronanguilloux
ronanguilloux / georss.js
Created April 21, 2013 22:08
GeoRSS (XML with go:lat, geo;long nodes) jQuery parsing, with performances improvements
$.fn.filterNode = function(name) {
return this.find('*').filter(function() {
return this.nodeName === name;
});
};
// example: 'http://www.emsc-csem.org/service/rss/rss.php?typ=emsc&min_lat=10&min_long=-30&max_long=65';
// (EMSC - Last 50 earthquakes in euro mediteranean region)
function handleRSS(url) {
$.ajax({
@jdennes
jdennes / LICENSE
Last active March 7, 2024 04:40
Subscribing to a Campaign Monitor list using AJAX
The MIT License (MIT)
Copyright (c) James Dennes
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: