Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
I am using angularjs + php. In my function i use the code:
$scope.addComment = function()
{
var request = $http({
method: "post",
url: "xmlAction.php",
data: {
id:shopItemID,
functionname: 'addNewComment',
description: 'Description Comment',
name:'Alex'
},
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
});
loadComment();
};
function loadComment(){
services.getComments().then(function(data){
var source = x2js.xml_str2json(data.data);
var comments = ($filter('filter')(source.data.comment, {itemID: shopItemID }));

$scope.comments = comments;
});
};

After i call function addComment, it still loads xml data in cache. How can i clear xml data in cache and reload it again ?

Thanks.
Posted

1 solution

You could look AT USING XSL as an alternative here is the PHP guidelines on this

http://php.net/manual/en/book.xsl.php[^]

I know you were more specific, so I apologize for my briefness.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900