javascript - Refused to execute script from '*' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled -
i using form on website update google sheet using google forms. working fine, have started receiving above mentioned error.
please note, data getting recorded perfectly, 'alert' not getting triggered (no response sheets?) user not able confirmation data has been recorded.
this script:
<script type="text/javascript"> function postcontacttogoogle(){ var name = $('#name-add').val(); var email = $('#email-add').val(); var location=$('#location-add').val(); if ((email !== "")) { $.ajax({ url: "http://docs.google.com/forms/d/1nt-naxvnzyhdeebqtypyq6zumkpk9of4fw_u5eailjg/formresponse", data: {"entry.555826589" : name, "entry.2022783192" : email, "entry.128132944": location}, type: "post", datatype: "jsonp", statuscode: { 0: function (){ $('#name-add').val("") $('#email-add').val("") $('#location-add').val(""); //success message alert("sweet! in touch soon."); }, 200: function (){ $('#name-add').val(""); $('#email-add').val(""); $('#location-add').val(""); //success message alert("sweet! in touch soon."); } } }); } else { //error message alert("email required"); } } ps: website hosted on blogger.
Comments
Post a Comment