skip to Main Content

Enabling Cors in local IIS – Jquery ajax

I've tried following the steps from Microsoft https://learn.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api I committed the codes I created in GitHub link below https://github.com/RGatchalian/StackOverflowQuestions/tree/master/ASPNET/EnablingCors Just to explain, Front-end folder is the call from Javascript to the WebApi and TestingCors folder is the WebApi. I'm currently…

VIEW QUESTION

For Loop through Ajax OnChange not works – Jquery ajax

I am trying to loop the OnChange method through AJAX call but surprisingly it won't work. for (let index = 0; index < 300; index++) { $('#txtLini'+[index]).on('change', function() { var lini=this.value; $.ajax({ url:'<?=base_url()?>index.php/fin/controller/M_index/getKode', method: 'post', data: {lini: lini}, dataType: 'json',…

VIEW QUESTION
Back To Top
Search