cg91 cg91 - 1 year ago 155
Ajax Question

Javascript not working after publish to IIS

I have searched on the internet for a while now to try and find something similar to help me without succes.

The code I have written below works perfectly on my local host but not on the server, can anyone please offer some advice, happy to add any extra code if required.

$(function() {
$("#SelectedStillage").on("change", function() {
var orderid = '@ViewBag.SalesOrder';
var stillageid = $(this).val();
type: "GET",
url: "/DespatchPrintLabels/_itemsPackedInStillage",
data: {
orderID: orderid,
stillageID: $(this).val()
success: function(data) {
error: function() {
alert("Something went wrong ");

Answer Source


url: '@Url.Action("_itemsPackedInStillage" "DespatchPrintLabels")'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download