if you copy http://tgbs.ir/xml/Category.xml in your browser , you will see content of xml file. but in below code alert doesnt show and i think url doesnt work . please help me to solve this problem because this code has to read from this url.
Date.ReadCategoryXml = function() {
var counter=0;
$.ajax({
type: "GET",
url: "http://tgbs.ir/xml/Category.xml",
dataType: "xml",
success: function(xml) {
$(xml).find("category").each(function() {
var cTitle = $(this).find("title").text()
var cUrl = $(this).find("url").text();
Data.arrCategory[counter++]= new Category(cTitle,cUrl);
});
alert("behnaz");
}
});
}