Follow @endyourif rss Facebook LinkedIn

Uncaught ReferenceError: require is not defined

Published on Feb 23, 2020

When you're first starting out with Node js, it might be a bit confusing because you are most likely accustomed to writing JavaScript code for the web browser. When Node js is the server, the syntax is similar but there are a few differences around how other JavaScript files and modules are included. When writing on the server side you may include files as follows: require('./mysharedfile');.

jQuery Datepicker with a Knockout js custom data binding

Published on Feb 18, 2020

Whether you are using the Bootstrap datepicker or the jQuery datepicker, they both use the same underlying JavaScript library. So with today's example, let's explore implementing the jQuery library with an added bonus of creating a Knockout js custom binding.

The end goal of this custom data bind is to create a form input field data bound not to the standard value binding, but instead to the custom one appropriately named: datepicker.

Full screen/background video from YouTube using jQuery

Published on Feb 17, 2020

I was searching the web for some neat ideas and I came across this intriguing jQuery plugin that allows you to embed a YouTube video on your website. No, not the standard player, but instead the video is your background. Similar to how you would use an image or color, the YouTube video plays automatically in full screen as the background of your website; here is a demo of the plugin.

Copy to clipboard with #JavaScript

Published on Feb 3, 2020

This is such a little handy JavaScript function that allows you to create a button that will copy a block of content into the user's clipboard. The solution is to use the built-in execCommand function.

Include a JavaScript file in another file

Published on Jan 28, 2020

Including a JavaScript file into another file is a very nice thing to be able to do. It's something you probably do with almost every other language; it helps keeping files smaller, more readable, and of course, more readable. There are multiple ways to accomplish this and I'll let you pick the one that works best for you.

Validate an email address in JavaScript

Published on Jan 26, 2020

Why you should use strict with JavaScript

Published on Jan 24, 2020

Create GUID / UUID in JavaScript

Published on Apr 9, 2019

Using a forEach loop with JavaScript

Published on Apr 7, 2019

Checking if an element exists with jQuery

Published on Mar 19, 2019

Creating Your Own jQuery Selector

Published on Mar 16, 2019

Implementing a trigger callback with jQuery

Published on Mar 14, 2019

Displaying a Progress Bar with HTML

Published on Mar 11, 2019

Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019

Organizing data with the jQuery Sortable plugin

Published on Mar 2, 2019

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

Published on Feb 28, 2019

jQuery: Splitting an unordered list into multiple columns

Published on Feb 26, 2019

jQuery: Creating templates for your HTML Content

Published on Feb 25, 2019

jQuery: Padding a Variable or String with a Specific Character

Published on Feb 23, 2019

Deep clone an object with JavaScript

Published on Feb 21, 2019

Experimenting with the canvas for a basic walk animation

Published on Feb 19, 2019

Deep clone an object with jQuery

Published on Feb 19, 2019

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

Published on Feb 18, 2019

JavaScript - Search a string for a substring

Published on Feb 15, 2019

Set Cursor Position of textarea with JavaScript

Published on Feb 14, 2019

JavaScript - Remove a specific element from an array

Published on Feb 7, 2019

Difference between location.href and location.replace

Published on Feb 9, 2018

Retrieving query string variables with JavaScript

Published on Feb 8, 2018

Zero Padding a Number with JavaScript

Published on Feb 7, 2018

ASP.NET MVC 5 with Bootstrap and Knockout.js

Published on Apr 21, 2015

Javascript, the Back Button, and Windows Phone 8 Development

Published on Feb 18, 2013

Node.js Versus Nginx: Bare Bones Test

Published on Dec 4, 2012

Node.js Versus Apache2: Bare Bones Test

Published on Dec 3, 2012

Node.js Ajax Pagination without the Pages

Published on Oct 15, 2012

Node using Jade Templates with Express

Published on Oct 8, 2012

My First Node Application

Published on Oct 4, 2012

A Fancier Twitter Timeline

Published on Sep 25, 2012

JavaScript: Easy Creation of Countdown Timers

Published on Aug 28, 2012

Making AJAX Content Loading Prettier

Published on Sep 8, 2011

Improving the speed of AJAX request and response times

Published on Sep 1, 2011

Maintaining the back button with AJAX

Published on Dec 28, 2010

Facebook Development - Quick and Easy Dialogs

Published on Jun 10, 2009

setTimeout() vs setInterval() in Javascript

Published on May 5, 2009

Jquery vs Prototype/Scriptaculous

Published on Mar 26, 2009

Optimize your CSS and JS with CakePHP in minutes

Published on Mar 21, 2009

Drag and drop category management with CakePHP

Published on Mar 11, 2009

Drag and drop with animations in jquery

Published on Mar 10, 2009

How to add comments with AJAX in CakePHP

Published on Mar 9, 2009

Fixing slow drag and drop with scriptaculous

Published on Feb 18, 2009

Drag and Drop with AJAX Example

Published on Feb 14, 2009

YSlow - Helping slow web pages load faster

Published on Feb 11, 2009

Firebug - A developer's best friend

Published on Feb 11, 2009