Ed Zynda

Coder | Hacker | Superhero

Running AJAX Requests Sequentially

Posted on · Tagged in

Somewhat recently, I was refactoring a project that was having issues uploading and importing large CSV files. I was running into all kinds of issues from timeout errors to memory allocation exceptions. The solution was to break up the import and upload it in chunks. This alone was pretty easy but I also wanted to include the ability to display the progress of the entire import. The problem was, I was using AJAX to upload the data.…

Read more »

Javascript Promises Explained

Posted on · Tagged in

While reading about different Javascript frameworks and utilities, I kept running across a design patter or technique called ‘promises’. It seems every shiny new Javascript thing utilizes them in some way or another. At first the concept seemed difficult to wrap my head around but eventually it clicked. It isn’t really as difficult as I thought. Javascript as well as other modern languages uses a what are called callback functions. These are functions passed as arguments to other functions and are used to do something with the data that the top level function returns.…

Read more »

Tip: Custom Scripts In WordPress

Posted on · Tagged in

WordPress is a great CMS (Content Management System) is you want to get a site up and running very quickly. It’s themable and within the theming framework, WordPress includes the ability to include popular assets like JQuery. All it takes is a simple command. <?php wp_enqueue_script(‘jquery’); What if you don’t want to use the version of JQuery included in WordPress though? There are several reasons you would require a different version, compatibility for example.…

Read more »
Subscribe to my newsletter and get a free copy of my book, Aspect Oriented Programming in PHP.