the first thing to check is, does the ajax-resource work.
what is the generated url here:
$.ajax({
type: 'POST',
url: "[[~99]]",
cache: false,
datatype: "html",
success: function(data){
…
}
});
does this ajax-request return anything(firebug)?
If not, does it return anything, when you replace your snippet-call there with some content?
If this everthing is working so far, you will need to debug your included script.
Is it included correctly.
Is the path to the file correct and so on.
Let us know how it goes at each step.
'It does not work' is nothing we can help with.