I'm having troubles when using jQuery Ajax for loading content - I get an error when trying to load a page using the statement below:
$.ajax({
url : "/shop/ajax/category/" + id,
success : onCategoryLoaded,
dataType : "html"
});
If the page I'm is plain html then everything is fine - however if I include a ui:composition
tag so I can use ui:repeat
and so on, then it fails due to 'unrecognized expression'.
What am I doing wrong?
Thanks in advance.