I have build a webapplication using ASP.NET MVC and JQuery. On my local machine this works fine,but when moving it to a Windows server 2003 the JQuery method post stops working. I'm also using the load method and this works fine.
function methodOne(id) {
alert("debug1: <%= Url.Action( "MethodOne", "controller" ) + "/" %>" + id);
$.post <%= Url.Action( "MethodOne", "controller" ) + "/" %>" + id, function(data) {
alert("debug2");
...
} else {
alert("Debugg: Add presentation to user failed");
}
});
}
The debug2 is never outputed.
$('#panel').load("<%= Url.Action( "Method", "Controller" ) %>");
Works fine.