Articles about ajax

Helping you solve those tough coding problems since 2009!

How to Convert an Existing Callback API to Promises

Published on Jun 6, 2023

Asynchronous programming is an essential aspect of JavaScript, allowing developers to handle time-consuming tasks without blocking the execution of other code. Traditionally, JavaScript used callback functions to manage asynchronous operations. However, callbacks can lead to callback hell and make code difficult to read and maintain.

JavaScript Fetch API Explained By Examples

Published on Aug 5, 2022

The JavaScript Fetch API helps users create asynchronous HTTP requests. I have many examples to show you how this is done.

Understand JavaScript Events with Examples

Published on Jul 28, 2022

JavaScript has many built-in functions that allow you to create custom events. In this article, we'll take a look at some of these functions and see what they do.

No Access-Control-Allow-Origin header is present on the requested resource

Published on Jun 15, 2022

Are you confused why you are getting this error? This error is caused when you are trying to perform an AJAX call from one site to a different site. Because Javascript is a client-side application it requires additional security to help protect the users from malicious code, e.g. calling a different site without the user knowing.

Using the JsHelper in CakePHP to submit a form with AJAX

Published on Mar 10, 2019

The JsHelper in CakePHP 2.x has replaced the AjaxHelper from CakePHP 1.x. I recently tried to implement the JsHelper without very much success; perhaps if I would have read the documentation more closely it would have been quite obvious what my mistake was. So in case you're like me and often skim over long documentation of a helper when you just need one function, in my case: $this->Js->submit() then you can often miss very important information. This article will hopefully help clarify

it. If you want to further enhance some stuff I highly recommend Organizing data with the jQuery Sortable plugin.

Transitioning AJAX Content into view with CSS3 Animations

Published on Mar 1, 2019

Transitioning AJAX Content into view with jQuery $.animate()

Published on Feb 28, 2019

jQuery: Global AJAX Events for Start, Stop, Complete, or Error

Published on Feb 18, 2019

Node.js – Ajax Pagination without the Pages

Published on Oct 15, 2012

CakePHP 2-0 Ajax Pagination WITHOUT The Pages

Published on Feb 28, 2011

Creating AJAX Pagination WITHOUT The Pages

Published on Feb 21, 2011

Maintaining the back button with AJAX

Published on Dec 28, 2010

AJAX, can there be too much?

Published on Dec 22, 2010

How to add comments with AJAX in CakePHP

Published on Mar 9, 2009

AJAX Select box in CakePHP

Published on Mar 6, 2009

Drag and Drop with AJAX Example

Published on Feb 14, 2009

Tutorials

Learn how to code in HTML, CSS, JavaScript, Python, Ruby, PHP, Java, C#, SQL, and more.

No matter the programming language you're looking to learn, I've hopefully compiled an incredible set of tutorials for you to learn; whether you are beginner or an expert, there is something for everyone to learn. Each topic I go in-depth and provide many examples throughout. I can't wait for you to dig in and improve your skillset with any of the tutorials below.