mgmhicks
asked on
trying to access my apphandler through ajax
I have an apphandler.ashx file in the app_code folder. The script to access it is. The file is there and works on development but on production machine I get:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:49630/App_Code/UnitAvailability.ashx
It worked in the route on the development but not on production. Since moving it to app_code folder it no longer works and I get the above error.
I see the file sitting there not sure whats up
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:49630/App_Code/UnitAvailability.ashx
It worked in the route on the development but not on production. Since moving it to app_code folder it no longer works and I get the above error.
I see the file sitting there not sure whats up
$.ajax({
url: 'App_Code/UnitAvailability.ashx',
type: 'POST',
dataType: 'json',
// data: JSON.stringify($('form').serializeObject()),
data: JSON.stringify(test2),
success: function (data) {
var oTable = $('#example').DataTable({
data: data, //this is your JSON object, which is what is showing in your post above with console.log(data)
"bLengthChange": false,
searching: false,
select: { etc,,,,,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.