JQuery post not working when moving web-app to a win server 2003

Posted by karl on Stack Overflow See other posts from Stack Overflow or by karl
Published on 2010-03-29T06:25:53Z Indexed on 2010/03/29 6:33 UTC
Read the original article Hit count: 304

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.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about jQuery