I have the following method, but it doesn't work in Opera and Google Chrome. I need to read xml file offline on CD. How can I fix this?
$(document).ready(function(){
$.ajax({
type: "POST",
url: "items.xml",
dataType: "xml",
success: function(xml) {
$(xml).find('item').each(function(){
var id = $(this).find('id').text();
var name = $(this).find('name').text();
var alcohol = $(this).find('alcohol').text();
var volume = $(this).find('volume').text();
$('<div class="items" id="link_'+id+'"></div>').html('<a href="files/'+name+'">'+name+'</a>').appendTo('#page-wrap');
});
}
});
});