Anjanesh LekshminarayananforAlpine JSalpinejs.in·Nov 22, 2023Using AJAX to load an image in the backgroundEver tried loading an image using AJAX/fetch? Here's a super simple example with AlpineJS parsing an IMG's src value as JavaScript. It can't get simpler than this. <div x-data="{}"> <img :src="await(await fetch('https://domain.com/myImage.jpg'))....DiscussAjax
Gujarati Coderreactflux.hashnode.dev·Oct 20, 2023How to call API using JavaScript ?JavaScript Fetch( ) API JS Fetch( ) API The fetch( ) is a modern JavaScript function that simplifies making AJAX requests to retrieve resources from a server. It provides a more streamlined and flexible alternative to the Traditional XMLHttpRequest....DiscussJavaScript
Gujarati Coderreactflux.hashnode.dev·Oct 11, 2023Fetch Data in React JS in modern wayThere are several ways to fetch data in a React application. Here are some of the most common: Fetch API : The Fetch API is a built-in browser API for fetching resources, including data from a server. It returns a Promise that resolves to the respons...DiscussReact
Dania Emaridania.hashnode.dev·Oct 6, 2023Using Fetch API POST Method to Store User Data on the ServerLet's say you have a web application that requires the users to register before using the web. In this case, you need to store the user's information so that they will be recognized the next time they visit the web. "but how can I store the user's in...Discuss·10 likesfetch
George Notageorge269.hashnode.dev·Oct 3, 2023submit a post request using formdata to the NodeJS server with a fetch APITo submit a POST request with FormData to a Node.js server using the Fetch API, you can follow this example. In this example, I'll assume you want to send form data to the server and handle it on the server side. This is a common scenario for handlin...Discuss·1 like·41 readsJavaScript
Vilmavilmacodes.hashnode.dev·Oct 1, 2023Working With API's : A Comprehensive GuideIntroduction API stands for "Application Programming Interface."It's a set of rules, protocols, and tools that allow different software applications to communicate and interact with each other. APIs are widely used to enable the integration of differ...Discuss·1 likeMastering Asynchronous Programming and Building a Photo App with Unsplash APIAPIs
Abdul rehman Shahsyedabdul.hashnode.dev·Sep 19, 2023Understanding Fetch API for AJAX Calls Without Page ReloadIntroduction: In modern web development, asynchronous communication with server-side resources is a fundamental requirement. Traditionally, this was accomplished using AJAX (Asynchronous JavaScript and XML) requests. However, with the advent of the F...DiscussFrontend Development
Abere Oghenefejirofejiro001.hashnode.dev·Sep 16, 2023What is Fetch API?Imagine the Fetch API as a friendly messenger that you send to pick up some information (like a package) from a far-away friend (a server). Here's how it works: Message (Request): You write a note (the request) to your friend (the server) saying wha...Discussfetch API
Mohd Junaid Arifmohd-junaid.hashnode.dev·Sep 8, 2023Fetch API: Making API calls with the Fetch API in JavaScript.Greetings, developers! 🚀 Let's explore the powerful Fetch API in JavaScript, your go-to tool for making smooth and efficient API calls. Say goodbye to bulky, outdated methods – Fetch API is here to streamline your data retrieval. Chapter 1: A Modern...DiscussMERN Stack
Nazmul Hossainnh47.hashnode.dev·Sep 4, 2023Unlocking the Potential of the JavaScript Fetch API: Mastering Data Retrieval and Enhancing SEOMastering Data Retrieval with the JavaScript Fetch API In the realm of modern web development, efficient data retrieval is paramount. Whether you're fetching data from a remote server or making API requests, JavaScript plays a crucial role in making ...DiscussJavaScript JavaScript