Hi Team
I have this Ajax call request, it seem it does not working on my button to download date range, Strange part when i access this URL directly from the browser it can download this file format as CVS file on my local computer, Any idea as to why am i not able to get this write? Kindly please help, thanks. https://nl.mathworks.com/help/thingspeak/readdata.html
$(document).ready(function() { $("#download").click(function() { $.ajax({ url:'https://www.thingspeak.com/channels/899906/feeds.csv?api_key=F**&results=3', type:'POST', dataType:'json', success:function(response){ window.location = response; } }); }); });
Best Answer