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 | sql | ajax | c

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

Manipulating an array of DOM elements with jQuery $.map() Manipulating an array of DOM elements with jQuery $.map()

Published on Mar 12, 2019 by Jamie Munro

jQuery's $.map() function is a pretty neat function. It accepts an array as a parameter and then will iterate through each item in the array allowing you to further manipulate and build a new array with that data. This article will explore how to use it while providing a useful example.

Read more >

Tags: jquery | 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: 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

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

Published on Oct 15, 2012 by Jamie Munro

Using Jquery to Check a Checkbox Using Jquery to Check a Checkbox

Published on Sep 27, 2012 by Jamie Munro

Determine if an element is visible with Jquery Determine if an element is visible with Jquery

Published on Sep 26, 2012 by Jamie Munro

PhoneGap and Jquery Mobile – A Truly Winning Combination PhoneGap and Jquery Mobile – A Truly Winning Combination

Published on Sep 11, 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

Creating AJAX Pagination WITHOUT The Pages Creating AJAX Pagination WITHOUT The Pages

Published on Feb 21, 2011 by Jamie Munro

Jquery vs Prototype/Scriptaculous Jquery vs Prototype/Scriptaculous

Published on Mar 26, 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

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

Published on Feb 18, 2009 by Jamie Munro