News & Blog

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...
acf-street-view

Advanced Custom Fields Street View in Google Map

February 5th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Software, Web Development.
One of the field types available with the Advanced Custom Fields plugin for WordPress is ‘Google Map‘. This allows a user to enter a location or address, then have a Google Map be output on the frontend. I worked on a site this morning that required a Google map adding, the dif...
Responsive Filemanager

Responsive Filemanager Showing Blank Screen or Errors

February 4th, 2014 - Posted by Steve Marks to Javascript / jQuery, PHP, Server Management, Software, Web Development.
I recently upgraded to version 4 of TinyMCE and needed a file manager that worked with this new version so that the user could upload and insert files into the WYSIWYG. Fortunately I came across an excellent file manager called ‘Responsive filemanager‘ which was relatively easy...

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 ...

Getting Marketo Landing Page JavaScript To Work

January 27th, 2014 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
I was recently tasked with building some landing pages in Marketo for a client. They chose Marketo so that they could track conversions and record submissions from the embedded form. I’d built landing pages in the past with no real problems, that was until now. In summary, on my land...

Resolving Google Map Controls Appearing Squashed

January 9th, 2014 - Posted by Steve Marks to (X)HTML / CSS, Javascript / jQuery, Web Development.
After working on an implementation of a Google Map earlier today, I came across an issue with the controls of the map appearing squashed, almost invisible like so: As you can see, the zoom control for example is barely noticeable. It was the same for other controls on the map, and also the...
Creating a Flot Horizontal Bar Chart

Creating a Horizontal Bar Chart With Flot.js

November 26th, 2013 - Posted by Steve Marks to Javascript / jQuery, Web Development.
I’ve been working with the jQuery Flot library quite a bit recently, and have already blogged about some of the problems I’ve had to overcome. This post isn’t necessarily about a problem. More of a ‘How To’ after I struggled to find any documentation or tutori...
Flot Blank in Internet Explorer 8

How I Got jQuery Flot Graphs To Work in IE8

November 19th, 2013 - Posted by Steve Marks to Javascript / jQuery, Web Development.
I’ve been working on a project recently that required a whole load of graphs and charts be displayed; From pie charts, to horizontal bar charts. To accomplish the job I put my faith in the trusty jQuery Flot library. I’ve used the Flot plugin in the past for simpler graphs but ...

Limit Length of Column Value in Yii Bootstrap TbGridView

October 16th, 2013 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
I’ve recently been working on a project built on the Yii framework that uses Yii-Bootstrap to make working with Yii and Bootstrap together a little easier. One of the widgets I frequently used was the TbGridView; A widget that outputs a table. Getting it integrated was easy enough bu...