I ask a similar question here and Darin Dimitrov answer that we can\'t use Url helper like $.ajax({ url: \'@Url.Action(\"Index\")\', . . . in sepa
Darin Dimitrov
$.ajax({ url: \'@Url.Action(\"Index\")\', . . .
The easiest way is just to create a global variable called something and just reference to it in your external JS
var baseURL = '@Url.Action("Index")';
Inside your external JS
$.ajax({ url: baseURL + "Action"