Earlier this year, we built figdam.com. It is currently used by several of our clients to host files and watermark PDFs. We’d like to bring this file hosting functionality to Slater users. With that in mind, where do you currently store files that Webflow doesn’t support? Would this feature be useful to you? What file hosting features do you need? Let us know. JS 101: File typesFile storage? Javascript? Let's consider all of the different file types that you could host and then retrieve and parse with Javascript. After we review the different file types, we will review how you can handle JSON–the primary format to retrieve and pass data. JSON Files
Javascript Files
HTML Files
CSS Files
XML Files
SVG Files
CSV Files
Binary Files
Plain Text Files
Markdown Files
Now, Let's go a bit deeper on JSON (JavaScript Object Notation). JSON is a lightweight data format often used for data exchange. 1. What Does JSON Look Like?JSON is a string representation of an object or array. Example:
2. Parsing JSONJavaScript provides the Syntax:
Example:
3. Parsing JSON from an API ResponseWhen working with APIs, you often get JSON data. Use the Fetch API to retrieve it. Example:
4. Converting JavaScript Objects Back to JSONUse Syntax:
Example:
Pretty-Printing JSON:
That's it. Let us know if and how you use JSON in your projects? Thanks for the mention on Twitter, @Narro_Labs!
Happy coding! 🤙 the Slater Team If Slater helps you create better websites, please support the team behind it.
|
Slater resources, updates and community activity
The team behind Slater would like to wish you a Merry Christmas and a happy New Year! 🎄🎅🎁 Get the Santa ASCII art: https://slater.app/projects/11431/pages/27608 Happy coding! 🤙 the Slater Team If Slater helps you create better websites, please support the team behind it. Become a Pro Slater User
Hi, Just a reminder that Kendra and Mason will be hosting an EA Office Hours Zoom this Friday, the 13th (spooky…) to chat about topics relating to Chapter 1: Sales for Creative Types. Sign up if you can make it, and bring your questions. Let’s get past any lingering sales ick together. Register to join us this Friday, 12/13 here. Also, if you can’t make it this week, we’re thinking about doing it again next Friday, 12/20 as well, if anyone is game? To ring in the holiday break, we’ll chat...
👋 So, you reserved your copy of How to Grow & Scale Your Business With Webflow. What’s next? So much good stuff. First, thank you. We had an amazing response — about 100 copies ordered in the first few days. And now, we’re finishing up getting the initial batch published. We’re estimating those — your copy included — will be mailed out in the next couple weeks. Check your inbox for weekly updates from us. We’ll be sending info on your order, details about upcoming Office Hours and Livestreams...