hi friends,
i have a question: i call several times a function in which there is an ajax
cal, which, when succesfull, performs a search in the loaded data and return
the result/.
Will the ajax call (the client/server communication) be performed each time, or
will it use the cache and just perform the search part ?
Here is my function:
function findProjectAnchor(projectName, scape){
var datascapeXml = $.ajax({
type: "POST",
url: "projects/datascapes.xml",
dataType: "xml",
async: true,
success: function(xml){
if (projectName != '' && scape != '' && xml) {
var myscape = $("scape[title='" + scape + "']", xml);
var myItem = $("item:contains('" + projectName + "')",
myscape).attr('rel');
return myItem;
}else
{
return "error";
}
}
});
}
THANK YOU
Alexandre