js and jquery

Simple Sticky Element

October 14, 2016

The user scrolls down the page and once the scrolling reaches the top of an element of my choosing, that element sticks to the top of the window, so it's always visible from that point on...

Read More

Removing the Horizontal Margins on a Google Chart Graph

May 14, 2016

I seem to be able to successfully modify quite a bit with google charts, but I couldn't find a good way to remove the horizontal padding to the left and right of a google graph. From what I can find, there really isn't a good way to do it...

Read More

PHP JSON Returned As Object Instead of Array

May 14, 2016

I was returning, what I thought was an array from PHP, but it kept returning it as a json object...

Read More

A Simple Slideout Menu

December 18, 2015

I just wanted an easy slideout menu. Click on a link, and the menu slides out from the left side of the screen. Click on the link again, or somewhere else on the page, and the menu slides back in...

Read More

Enhancements for jPlayer Implementation

October 05, 2015

I love the jPlayer for easily being able to add modern mp3 support to web pages.  I wanted a few additional features

Read More

Preserving Click Events With jQuery UI

August 30, 2015

My click events weren\'t being preserved when using the jquery sortable functionality...

Read More

Javascript define a variable if it isn\'t defined currently

June 27, 2015

It seems like this comes up quite a bit. This will create a new variable if the variable isn\'t currently defined...

Read More

Debugging Firefox Mobile on Your Computer

June 25, 2015

I needed to debug a web page that I was working on, which was having some issues on mobile versions of firefox. I just needed to look at the console, but setting this up was a bit complicated, moreso than it should be...

Read More

Slide a Div Up From the Bottom of the Page

April 08, 2015

Getting a div to slide up from the bottom of the page when opening, and slide back down when hiding.

Read More

Only Include jQuery if it Hasn't Already Been Included

March 23, 2015

If jQuery gets included twice, things break...

Read More