「一覧表示」の編集履歴(バックアップ)一覧はこちら
「一覧表示」(2014/08/25 (月) 01:24:17) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
#js(){{
$(function(){
$.ajax({
type:"GET",
url:"http://www60.atwiki.jp/jugglingclublocation/?cmd=upload&act=open&pageid=16&file=map.kml",
dataType: "xml",
success:function(xml){
var table = $("<table/>");
var num = 1;
$(xml).find("Placemark").each(function(){
var tr = $("<tr/>");
var name = $(this).find("name").html();
var description = $(this).find("description").html();
var coordinates = $(this).find("coordinates").html();
description = description.match(/\[CDATA\[(.*)\]\]/)[1];
tr.append($("<td/>",{"num":num}).html(num++));
tr.append($("<td/>").html(name));
tr.append($("<td/>").html(description));
tr.append($("<td/>").html(coordinates));
table.append(tr);
});
$("#clubList").append(table);
$("#contents").css({"height":"auto"});
}
});
});
}}
#html2(){
<div id="clubList"></div>
}
#js(){{
$(function(){
$.ajax({
type:"GET",
url:"http://www60.atwiki.jp/jugglingclublocation/?cmd=upload&act=open&pageid=16&file=map.kml",
dataType: "xml",
success:function(xml){
var table = $("<table/>");
var num = 1;
$(xml).find("Placemark").each(function(){
var tr = $("<tr/>");
var name = $(this).find("name").html();
var description = $(this).find("description").html();
var coordinates = $(this).find("coordinates").html();
description = description.match(/\[CDATA\[(.*)\]\]/)[1];
tr.append($("<td/>",{"name":"num"}).html(num++));
tr.append($("<td/>",{"name":"name"}).html(name));
tr.append($("<td/>",{"name":"description"}).html(description));
tr.append($("<td/>",{"name":"coordinates"}).html(coordinates));
table.append(tr);
});
$("#clubList").append(table);
$("#contents").css({"height":"auto"});
}
});
});
}}
#html2(){
<div id="clubList"></div>
}