Thursday, 15 August 2013

jQuery ajax not reaching root file

jQuery ajax not reaching root file

I am using jQuery ajax. But everytime I make the request from page
~/profile to the page ~/send_request the request is captured at
~/profile/send_request. here is the code function sendRequest() { var id =
document.getElementById("button-request").value; $.ajax({ url:
"send_request.cshtml", data: "id=" + id, success: function (result) {
$("#button-request").html(result); } }) }
I am not able to get to the desired page. I have checked IE developer
tools. From there I came to know about this issue!

No comments:

Post a Comment