Helping you solve those tough coding problems!
Learn some great web development and web design tips and techniques through recipes that clearly define the problem being solved with a working solution.
Popular Tags: cakephp | theory | optimization | javascript-development | asp-net | css | jquery-development | ajax | sql | php-development

Search:
Follow @endyourif rss Facebook LinkedIn

Checking if an element exists with jQuery Checking if an element exists with jQuery

Published on Mar 19, 2019 by Jamie Munro

You want to do some conditional processing depending on if an item or items exist in your DOM (Document Object Model). By default, jQuery doesn't have a function that performs this; however, there is a very simple way to extend jQuery to do so.

Read more >

Tags: jquery | extend | JavaScript | jQuery

Creating Your Own jQuery Selector Creating Your Own jQuery Selector

Published on Mar 16, 2019 by Jamie Munro

By default, the jQuery selectors are pretty advanced. You can select items by classes, ids, attributes, the first, the last, etc… But why stop there? By simply extending jQuery, we can add our own custom selectors to further enhance how we use jQuery. In this example, I will create an extended function called widthOver300 leveraging jQuery's $.extend

Read more >

Tags: jquery | extend | JavaScript | jQuery

Implementing a trigger callback with jQuery Implementing a trigger callback with jQuery

Published on Mar 14, 2019 by Jamie Munro

As we move into a more and more interactive era of website development, more of the JavaScript work is being done asynchronously and not "top-down". This can provide some interesting challenges, for example, executing a specific action after a specific process has been completed – also known as a callback. Thankfully, jQuery provides some useful functions to help with this process. This article will explore using $(window).trigger();.

Read more >

Tags: jquery | JavaScript | jQuery

Displaying a Progress Bar with HTML Displaying a Progress Bar with HTML

Published on Mar 11, 2019 by Jamie Munro

HTML5 now contains a markup tag progress. This displays a basic progress bar based on two attributes that you must specify: the current value and the max value. Using some basic Javascript, you can increment the progress bar so the user knows something is happening and will be done soon.

Read more >

Tags: html | JavaScript | jQuery

Using CakePHP with the jQuery Sortable Plugin Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019 by Jamie Munro

It's time to permanently remove all "manual" sorting from the Internet. You know the one I mean where it has the up and down arrows – or even worse, the text box that accepts a numerical order input. By implementing the jQuery Sortable Plugin, you will be able to provide a simple, but effective drag-and-drop ordering solution for just about any type of data!

In a recent article, I described the required HTML and Javascript code need to implement the jQuery Sortable Plugin on a gallery of images. If you haven't already done so, please begin by reading this article because this one will gloss over those features and focus on how to implement this with CakePHP.

Read more >

Tags: CakePHP | jquery | PHP | JavaScript | jQuery | CakePHP

Organizing data with the jQuery Sortable plugin Organizing data with the jQuery Sortable plugin

Published on Mar 2, 2019 by Jamie Munro

Transitioning AJAX Content into view with jQuery $.animate() Transitioning AJAX Content into view with jQuery $.animate()

Published on Feb 28, 2019 by Jamie Munro

jQuery: Splitting an unordered list into multiple columns jQuery: Splitting an unordered list into multiple columns

Published on Feb 26, 2019 by Jamie Munro

jQuery: Creating templates for your HTML Content jQuery: Creating templates for your HTML Content

Published on Feb 25, 2019 by Jamie Munro

jQuery: Padding a Variable or String with a Specific Character jQuery: Padding a Variable or String with a Specific Character

Published on Feb 23, 2019 by Jamie Munro

Deep clone an object with JavaScript Deep clone an object with JavaScript

Published on Feb 21, 2019 by Jamie Munro

Experimenting with the canvas for a basic walk animation Experimenting with the canvas for a basic walk animation

Published on Feb 19, 2019 by Jamie Munro

Deep clone an object with jQuery Deep clone an object with jQuery

Published on Feb 19, 2019 by Jamie Munro

jQuery: Global AJAX Events for Start, Stop, Complete, or Error jQuery: Global AJAX Events for Start, Stop, Complete, or Error

Published on Feb 18, 2019 by Jamie Munro

JavaScript - Search a string for a substring JavaScript - Search a string for a substring

Published on Feb 15, 2019 by Jamie Munro

Set Cursor Position of textarea with JavaScript Set Cursor Position of textarea with JavaScript

Published on Feb 14, 2019 by Jamie Munro

JavaScript - Remove a specific element from an array JavaScript - Remove a specific element from an array

Published on Feb 7, 2019 by Jamie Munro

Difference between location.href and location.replace Difference between location.href and location.replace

Published on Feb 9, 2018 by Jamie Munro

Retrieving query string variables with JavaScript Retrieving query string variables with JavaScript

Published on Feb 8, 2018 by Jamie Munro

Zero Padding a Number with JavaScript Zero Padding a Number with JavaScript

Published on Feb 7, 2018 by Jamie Munro

ASP.NET MVC 5 with Bootstrap and Knockout.js ASP.NET MVC 5 with Bootstrap and Knockout.js

Published on Apr 21, 2015 by Jamie Munro

Javascript, the Back Button, and Windows Phone 8 Development Javascript, the Back Button, and Windows Phone 8 Development

Published on Feb 18, 2013 by Jamie Munro

Node.js Versus Nginx: Bare Bones Test Node.js Versus Nginx: Bare Bones Test

Published on Dec 4, 2012 by Jamie Munro

Node.js Versus Apache2: Bare Bones Test Node.js Versus Apache2: Bare Bones Test

Published on Dec 3, 2012 by Jamie Munro

Node.js – Ajax Pagination without the Pages Node.js – Ajax Pagination without the Pages

Published on Oct 15, 2012 by Jamie Munro

Node using Jade Templates with Express Node using Jade Templates with Express

Published on Oct 8, 2012 by Jamie Munro

My First Node Application My First Node Application

Published on Oct 4, 2012 by Jamie Munro

A Fancier Twitter Timeline A Fancier Twitter Timeline

Published on Sep 25, 2012 by Jamie Munro

JavaScript: Easy Creation of "Countdown Timers" JavaScript: Easy Creation of

Published on Aug 28, 2012 by Jamie Munro

Making AJAX Content Loading Prettier Making AJAX Content Loading Prettier

Published on Sep 8, 2011 by Jamie Munro

Improving the speed of AJAX request and response times Improving the speed of AJAX request and response times

Published on Sep 1, 2011 by Jamie Munro

Maintaining the back button with AJAX Maintaining the back button with AJAX

Published on Dec 28, 2010 by Jamie Munro

Facebook Development - Quick and Easy Dialogs Facebook Development - Quick and Easy Dialogs

Published on Jun 10, 2009 by Jamie Munro

setTimeout() vs setInterval() in Javascript setTimeout() vs setInterval() in Javascript

Published on May 5, 2009 by Jamie Munro

Jquery vs Prototype/Scriptaculous Jquery vs Prototype/Scriptaculous

Published on Mar 26, 2009 by Jamie Munro

Optimize your CSS and JS with CakePHP in minutes Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009 by Jamie Munro

Drag and drop category management with CakePHP Drag and drop category management with CakePHP

Published on Mar 11, 2009 by Jamie Munro

Drag and drop with animations in jquery Drag and drop with animations in jquery

Published on Mar 10, 2009 by Jamie Munro

How to add comments with AJAX in CakePHP How to add comments with AJAX in CakePHP

Published on Mar 9, 2009 by Jamie Munro

Fixing slow drag and drop with scriptaculous Fixing slow drag and drop with scriptaculous

Published on Feb 18, 2009 by Jamie Munro

Drag and Drop with AJAX Example Drag and Drop with AJAX Example

Published on Feb 14, 2009 by Jamie Munro

YSlow - Helping slow web pages load faster YSlow - Helping slow web pages load faster

Published on Feb 11, 2009 by Jamie Munro

Firebug - A developer's best friend Firebug - A developer's best friend

Published on Feb 11, 2009 by Jamie Munro