jquery.post()メソッドを使用してxmlファイルを取得しようとしています。私のコードはjquery.ajax()が動作しない
function getTitle()
{
jQuery.ajax({
type: "POST",
url: "https://spreadsheets.google.com/feeds/spreadsheets/private/full.txt",
dataType: "xml",
success: function(xml) {
var i=0;
$(xml).find('entry').each(function(){
if($(this).find('title').text().toString() == "Sample Spreadsheet"){
var href = $(this).find('link')[1].getAttribute('href').toString();
var url="https://spreadsheets.google.com/feeds/worksheets/" + href.split('=')[1] + "/private/full";
alert(href.split('=')[1]);
}
i++;
});
}
});
}
ですが、警告していません。どうすれば解決できますか?
[あなたのURLは404です](https://spreadsheets.google.com/feeds/spreadsheets/private/full.txt) – thirtydot
あなたの[前の質問](http: /stackoverflow.com/questions/4667577/how-do-i-send-put-request-through-javascript-ajax)。そしてbtw。あなたはここでも '$ _post'(あるいは何かPOSTish)を使っていません。 –
ohk Felix!本当にありがとうございました! –