Chevtek.io
  • Home
  • Github
  • Stack
Sign in Subscribe

Asynchronous Code

A collection of 3 posts
What are callbacks and promises?
JavaScript

What are callbacks and promises?

To explain promises we must first explain callbacks. A callback function is simply a function you pass into another function so that function can call it at a later time. This is commonly seen in asynchronous APIs [http://en.wikipedia.org/wiki/Application_programming_interface]; the API call returns immediately
Nov 3, 2013 6 min read
How to Implement Auto-Save in your Web App
JavaScript

How to Implement Auto-Save in your Web App

Have you ever accidentally unfocused the textarea you were typing in and then hit backspace only to have the entire browser go back a page and blow away everything you were typing? Losing work is one of the most irritating things a user can experience in a web application. Today
Mar 29, 2013 3 min read
Asynchronous Code

How to Maintain Browser History When Using AJAX

One of the biggest problems when using AJAX [http://en.wikipedia.org/wiki/Ajax_(programming)] in web development is maintaining application state. In a javascript heavy site one might want to do all sorts of things that change the state of the user experience. For instance, opening up modal dialogs
Jun 3, 2011 3 min read
Page 1 of 1
Chevtek.io © 2023
Powered by Ghost