Modifications

Aller à : navigation, rechercher

Widget:CartoFab

1 434 octets supprimés, 4 novembre 2014 à 16:12
aucun résumé de modification
///
/*
$.getJSON("Sp%C3%A9cial:Ask/-5B-5BCategory:Fablabs-5D-5D-20-5B-5Blong::!:-5D-5D/-3FLong-23-2D/-3FLatt-23label/-3FSite/-3FAdresse/-3FIntitul%C3%A9/-3FStructures/limit%3D500/searchlabel%3D/format%3Djson")
.done(function(data) {
 
$.each(data.items, function(i,item){
L.marker([item.latt, item.long]).addTo(cartofab).bindPopup("<b><a href="+item.site+" target=\"_blank\">"+item.label+"</a></b><br/>"+item.intitulé+"<br/>"+item.structures);
})
.fail(function( jqxhr, textStatus, error ) {
var err = textStatus + ", " + error;
console.log( "Request Failed: " + err );
})
 
;
 
 
document.getElementById("nombreLabos").innerHTML = "Il ya actuellement "+data.items.length+" laboratoires renseignés sur cette page";
});
*/
</script>
<noinclude>
$.getJSON( "test.js", { name: "John", time: "2pm" } ).done(function( àvoir requete json ) {console.log( "JSON Data: " + json.users[ 3 ].name );}).fail(function( jqxhr, textStatus, error ) {var err = textStatus + ", " + error;console.log( "Request Failed: " + err );});semantik mieux
=====documentation=====
ancien================================================$.getJSON("Sp%C3%A9cialhttp:Ask/-5B-5BCategory:Fablabs-5D-5D-20-5B-5Blong::!:-5D-5D/semantic-3FLong-23-2D/-3FLatt-23labelmediawiki.org/-3FSitewiki/-3FAdresse/-3FIntitul%C3%A9/-3FStructures/limit%3D500/searchlabelSerialization_%3D/format28JSON%3Djson", function(data) {  $.each(data.items, function(i,item){ L.marker([item.latt, item.long]).addTo(cartofab).bindPopup("<b><a href="+item.site+" target=\"_blank\">"+item.label+"</a></b><br/>"+item.intitulé+"<br/>"+item.structures); 29
 
});
 
 
=====documentation=====
https://www.mediawiki.org/wiki/Category:Snippets_with_JavaScript
</noinclude>
0
6 691
modifications

Menu de navigation