News & Blog

Querying Posts Using AJAX In WordPress Returns All Posts

May 22nd, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
I’ve found myself doing a lot of work recently with AJAX requests in WordPress. Today was no different when I was tasked with implementing an infinite scroll onto a blog. The user would scroll and the next set of posts would be pulled in when the user reached the bottom. Initially I ...

Resolving the Random Zero at the End of AJAX Requests in WordPress

March 18th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
If you’ve ever integrated AJAX functionality into a WordPress plugin or theme, you have probably / should have used the in-built WordPress functionality that already exists. An article in the WordPress Codex explains how to do this, and demonstrates how easy it can be. I needed to do...
Debugging Ajax Requests

Debugging Why Your AJAX Requests Aren’t Working

February 18th, 2014 - Posted by Steve Marks to Javascript / jQuery, Software, Web Development.
AJAX is a great way to improve usability for a site or application and, with the up-rise of libraries such as jQuery, MooTools and Prototype, it’s never been easier to implement AJAX functionality. When it’s working it can make tasks quicker to complete, and also means that the...

Fixing Remote Modals in Bootstrap 3.1

January 31st, 2014 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
Yesterday saw the release of Bootstrap version 3.1. After upgrading one of my sites that previously used version 3.0 I noticed that my remote modal dialog boxes had stopped working. The translucent backdrop would show but the content wouldn’t. There were no JavaScript errors, and no ...

Loading InfoWindow Content using AJAX with Google Maps API

October 5th, 2012 - Posted by Steve Marks to Javascript / jQuery, Web Development.
One of the things I love about the Google Maps API is it’s speed, both from a development point of view and usability. I got asked a question the other day however regarding loading hundreds, if not thousands, of markers, each with an InfoWindow containing an image. The page loading ...

jQuery .find() Not Working in IE with Dynamic XML File

August 23rd, 2011 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
This problem arose for me when I was loading markers onto a Google map using their JavaScript API via an AJAX call and a returned XML string generated by PHP. The markers would show in all browsers except IE with no errors or warning messages at all. The script seemed to be failing when lo...

Simple AJAX / PHP Enquiry Form Tutorial

April 12th, 2010 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
During my 7 or so years of working with PHP I have created literally 100’s of enquiry forms. From simple ones containing just a couple of fields to complex ones (sometimes maybe a bit too complex) containing hundreds of different variables. They all essentially however do the same th...