Search Results

Showing results for "javascript"

Latest Articles

Cover Image for Fetch API request timeout?
ajaxjavascript

Fetch API request timeout?

Published on September 2, 2023

# πŸ” What's the Timeout? So you're using the πŸ”₯ Fetch API πŸ”₯ for your POST request, huh? But wait, have you ever wondered what happens if the 🌐 network takes too long to respond? πŸ€” That's where the concept of **timeout** comes into play! ⏰ By default,

Cover Image for How to detect if URL has changed after hash in JavaScript
ajaxjavascript

How to detect if URL has changed after hash in JavaScript

Published on September 2, 2023

# How to Detect if URL has Changed after Hash in JavaScript πŸ’‘πŸ” Have you ever wondered how the websites like GitHub dynamically change the URL without reloading the entire page? πŸ€” They cleverly use the hash symbol "#" to append page information, allowin

Cover Image for Origin <origin> is not allowed by Access-Control-Allow-Origin
ajaxcorsjavascriptnode.js

Origin <origin> is not allowed by Access-Control-Allow-Origin

Published on September 2, 2023

## Easy Solutions for the "Origin is not allowed by Access-Control-Allow-Origin" Issue πŸ˜•πŸ” πŸ” Ever encountered the pesky error message "Origin is not allowed by Access-Control-Allow-Origin"? We feel you! This error often arises when making cross-domain A

Cover Image for Cross-origin resource sharing (CORS) post request works from plain javascript, but why not with jQuery
ajaxcorsjquery

Cross-origin resource sharing (CORS) post request works from plain javascript, but why not with jQuery

Published on September 2, 2023

# Why Cross-Origin Resource Sharing (CORS) POST Request Works from Plain JavaScript, but Not with jQuery? πŸ€” If you've ever encountered a situation where a Cross-Origin Resource Sharing (CORS) POST request worked perfectly fine when made from plain JavaSc

Cover Image for URL Encode a string in jQuery for an AJAX request
ajaxhttpjavascriptjquery

URL Encode a string in jQuery for an AJAX request

Published on September 2, 2023

# πŸ“ Blog Post: URL Encode a string in jQuery for an AJAX request Are you working on implementing Google's Instant Search in your application? Are you facing an issue where spaces in between first and last names are not being encoded as a "+" sign, thus b

Cover Image for JavaScript/jQuery to download file via POST with JSON data
ajaxjavascriptjquery

JavaScript/jQuery to download file via POST with JSON data

Published on September 2, 2023

### πŸ“₯ Downloading Files via POST in JavaScript/jQuery Have you ever wondered how to download a file using a POST request in JavaScript/jQuery while also sending JSON data? It can be a bit tricky, but fear not - I am here to guide you through the process!

Cover Image for How to communicate between iframe and the parent site?
ajaxhtmljavascript

How to communicate between iframe and the parent site?

Published on September 2, 2023

πŸ“ Blog Post: How to Communicate Between iframe and the Parent Site? 🌐 Introduction: Are you struggling with communicating between an iframe and the parent site? Don't worry; you're not alone! Many developers face this challenge when the iframe and the p

Cover Image for Fetch API vs XMLHttpRequest
ajaxjavascriptxmlhttprequest

Fetch API vs XMLHttpRequest

Published on September 2, 2023

# Fetch API vs XMLHttpRequest: Exploring the Extra Capabilities Are you feeling puzzled about the differences between Fetch API and XMLHttpRequest? Do you find yourself asking, "What extra capabilities does the Fetch API have?" Don't worry, I've got you c

Cover Image for How to use FormData for AJAX file upload?
ajaxjavascriptjquery

How to use FormData for AJAX file upload?

Published on September 2, 2023

# How to use FormData for AJAX file upload? πŸ’ΎπŸ“€ Have you ever needed to upload a file using AJAX, but didn't know how to handle it? This can be a common issue, especially when it comes to dynamically generated forms. But fear not! In this guide, we'll sh

Blog | Matheus Mello