1

The code below worked on localhost but did not work online

$("#PstsubmitChcReport").click(function(){
    $("#response").load("submitServiceReport/");
});

Somebody please help in solving the problem

  • 5
    Check the network tab of the console to see the exact error. The URL is most likely different on the server due to changed folder paths. – Rory McCrossan May 03 '16 at 12:56

1 Answers1

0

It might be because of Same-origin Policy.

There are some Workarounds. You can follow here.

Community
  • 1
  • 1
Jenson M John
  • 5,499
  • 5
  • 30
  • 46