I'm having problems with my jQuery AJAX call for my shop.
I've made a hidden page with a clean template - so it's a normal page with HTML.
When i try to run my AJAX it doesn't call the right page.
The AJAX page is called "AJAX.aspx" and the testpage is "AJAXTest123.apx".
<script type="text/javascript">
function addToCart(productid)
{
var url = "/AJAX.aspx?productid="+productid+"&cartcmd=add";
$.ajax({
type: "GET",
url: url,
dataType: "html",
cache: false,
success: function(data) {
document.write(data);
}
});
}
addToCart('PROD420');
</script>
How come?