<script>
jQuery(function($){
var url = 'http://○○';
$.ajax({
url: url,
dataType:'xml',
success: function(xml){
// 成功時処理
},
error: function(){
// 失敗時処理
}
});
});
</script>
JavaScriptで拡張子を取得する
var str = 'filename.txt';
var ext = str.split(".").pop();
GoogleのjQueryを使う
https://developers.google.com/speed/libraries/devguide
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/themes/smoothness/jquery-ui.css" /> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js"></script>
