Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

clear cache after ajax success

$.ajax({
    type: "POST",
    async: true,
    url: "/manage/update_position/",
    data: {
        "action": action.
        "model": model,
        "object_id": object_id,
        "position": position
    },
    cache: false,
    dataType: "json",
    success: function(data){
        //[snip]
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #clear #cache #ajax #success
ADD COMMENT
Topic
Name
7+9 =