JavaScript & AJAX posts

08 Aug 2014

Shorter JavaScript console.log function

A simple, JavaScript function that saves time typing 'console.log' that is compatible with Internet Explorer 8

console.log function »

09 Mar 2014

Dynamically generate a select list with jQuery, AJAX & PHP

Code examples and explanation of how to get one select list to dynamically generate the option values of another. Uses an AJAX call in jQuery to execute a PHP script that grabs the values from a MySQL table.

Generate select list values from another select »

05 Feb 2014

Using Google Places Autocomplete with Google Maps

This post details the process involved to setup Google Places Autocomplete functionality along with updating a Google Map based on a location's longitude and latitude values. Includes demo and source code.

Setup Google Places Autocomplete »

15 Dec 2012

Creating a Custom jQuery Twitter Feed (API v1.1)

Creating and styling a custom javascript based twitter feed that can be integrated on websites. Includes demos and source code.

jQuery Twitter Feed »

14 Oct 2012

Twitter feed URL error (code 34)

Twitter have recently updated paths to public feeds from http://twitter.com/status/.. to http://api.twitter.com/1/statuses/... if you are getting a code 34 error message, you should:

Update the Twitter json path »

12 Aug 2012

jQuery pendulum. Animation around a pivot point

A jQuery based animation of basic pendulum motion of an obejct around a pivot point using CSS3 rotation. Includes source code and demo.

jQuery pendulum animation »

30 Apr 2012

Removing the iphone navigation bar with jquery

JavaScript snippets that will hide the navigation\address toolbar on the iPhone when the page loads and when the iPhone is rotated in landscape or portrait mode.

Hiding the iPhone navigation bar »

09 Feb 2012

JavaScript Function to Check\Uncheck all Checkboxes

A cross browser compatible JavaScript function to select or de-select all checkboxes in a form. The check all function finds all checkboxes in a designated form, regardless of the checkbox name. JQuery version also available

Check all checkboxes in JavaScript »

28 Jan 2012

Spry XML Dataset: Selecting a Single Row

Some useful Spry code that allows a single, unique row or record to be selected from an XML dataset. The process involves first passing a unique row ID to a detail page and then filtering a single row from the XML using the unique ID.

Find specific row in Spry XML Dataset »

25 Jan 2012

Spry Dataset: Limit Rows, Characters & External Feeds

A few simple Spry snippets to limit the number of rows displayed from a Spry XML Dataset, limit the characters displayed in a Spry field and how to get around the security issues preventing xml external feeds to be used.

Limit rows & characters & using external feeds with a Spry dataset »

css.php