KenMarrocco Posted August 12, 2021 Posted August 12, 2021 Site URL: https://www.norwoodbaptistchurchri.org I have uploaded a text file (LastService.txt) and I am now trying to read the contents of it using JavaScript. Here is a snippet of code. I get an error because JavaScript doesn't find the page. I commented everything else out so I believe I don't have the right path to the text file. <script type="text/javascript"> function readTextFile() { var rawFile = new XMLHttpRequest(); var filepath = 'https://www.norwoodbaptistchurchri.org/s/LastService.txt'; rawFile.open('GET', filepath, true);
Beyondspace Posted September 28, 2021 Posted September 28, 2021 On 8/12/2021 at 7:15 AM, KenMarrocco said: Site URL: https://www.norwoodbaptistchurchri.org I have uploaded a text file (LastService.txt) and I am now trying to read the contents of it using JavaScript. Here is a snippet of code. I get an error because JavaScript doesn't find the page. I commented everything else out so I believe I don't have the right path to the text file. <script type="text/javascript"> function readTextFile() { var rawFile = new XMLHttpRequest(); var filepath = 'https://www.norwoodbaptistchurchri.org/s/LastService.txt'; rawFile.open('GET', filepath, true); Have you upload the file? I can not find it either BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - PDF Lightbox popup - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> No-code customisations for Squarespace
creedon Posted September 29, 2021 Posted September 29, 2021 Me too! No find file! Was/is your site in trial mode? If so uploaded files aren't available until the site is paid for. But before you pay for a site you'll want to make sure you have the right URL. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.