{"action":"created","issue":{"url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/26","repository_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server","labels_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/26/comments","events_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/26/events","html_url":"https://github.com/dwyl/html-form-send-email-via-google-script-without-server/issues/26","id":146139607,"number":26,"title":"Stuck on #11: adding JavaScript \"AJAX\"","user":{"login":"katebastinelli","id":18296679,"avatar_url":"https://avatars.githubusercontent.com/u/18296679?v=3","gravatar_id":"","url":"https://api.github.com/users/katebastinelli","html_url":"https://github.com/katebastinelli","followers_url":"https://api.github.com/users/katebastinelli/followers","following_url":"https://api.github.com/users/katebastinelli/following{/other_user}","gists_url":"https://api.github.com/users/katebastinelli/gists{/gist_id}","starred_url":"https://api.github.com/users/katebastinelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katebastinelli/subscriptions","organizations_url":"https://api.github.com/users/katebastinelli/orgs","repos_url":"https://api.github.com/users/katebastinelli/repos","events_url":"https://api.github.com/users/katebastinelli/events{/privacy}","received_events_url":"https://api.github.com/users/katebastinelli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-05T23:40:39Z","updated_at":"2016-05-08T15:24:57Z","closed_at":null,"body":"My form was submitting properly and sending to the correct email address before adding this script code:\r\n<script data-cfasync=\"false\" type=\"text/javascript\"\r\nsrc=\"https://cdn.rawgit.com/dwyl/html-form-send-email-via-google-script-without-server/master/form-submission-handler.js\"></script>\r\n\r\nAfter adding in the code I keep receiving these errors in the console:\r\nXMLHttpRequest cannot load https://script.google.com/macros/s/AKfycbxZcN3Cih22AOi28IUTtexOPPWdj1zIT3d2nkvbZTguwhQ8we4V/exec. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.\r\nUncaught TypeError: Cannot read property 'style' of null\r\n\r\nI've tried troubleshooting but can't figure out the issue. Does anyone have any suggestions? My html file is attached for reference.\r\n[index.txt](https://github.com/dwyl/html-form-send-email-via-google-script-without-server/files/205547/index.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/comments/217726879","html_url":"https://github.com/dwyl/html-form-send-email-via-google-script-without-server/issues/26#issuecomment-217726879","issue_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/26","id":217726879,"user":{"login":"nelsonic","id":194400,"avatar_url":"https://avatars.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T15:24:57Z","updated_at":"2016-05-08T15:24:57Z","body":"@Vladlgk this form is meant to be used as a \"contact us\". \r\nif you need to *customise* the example/sample code to not require an email address to be submitted, go for it! 👍 "}}