I have the following in a jsp page;
<script language="javascript">
function ClickMe_Click()
{
$.ajax({
type: "post",
url: "dimensionList.jsp",
data: "dimensionName=Slappy",
success: function(msg) {
alert(msg);
}
error: function(request,error){
alert(error);
}
});
return false;
}
</script>
<a href="." onclick="return ClickMe_Click() ;">Click Me</a>
In my dimensionList.jsp I have;
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
out.print("it works!");
%>
I am getting an error but when I alert out error I get "error" which is less than helpful.