I have the following jQuery to call a method which load a partial page onto a hidden div,
on the local machine this method works fine, but when i add the code to the server the partial page does not load. any ideas why this doesn't work
var url = "/Subcription/Index/";
jQuery.get(url, { id: client }, function (data) {
$("#divpart").empty();
$("#divpart").append(data);
});
Maybe your application has a context-root on the server side. Since you are using the initial slash "/", the URL is an absolute URL and your context-root will be removed.
For instance if the valid URL on the server is something like this
http://your.domain.com/yourapplication/Subcription/Index/
Your call will result in something different:
http://your.domain.com/Subcription/Index/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.