Response title
This is preview!
$.ajax({
url: spUrl,
async: true,
success: function(data) {
var spUrlTitle = $(data).find('title').eq(0).text();
if (spUrlTitle != "") {
$('ul#suggested-pages>li.in-progress a[href="'+spUrl+'"]').html(spUrlTitle);
[...]
}
else {
[...]
}
[...]
},
error: function() {
[...]
}
});
© 2013 jQuery Foundation
Sponsored by and others.