jQuery / Javascript Posts

API

Can Instagram posts be easily retrieved?

Mike Wang • February 8, 2018

Displaying Instagram posts on your website can be unexpectedly confusing. Most developers’ first thought is to use the Instagram API to pull in content. Unfortunately, Instagram’s API requires clients to use the decidedly complex OAuth 2.0…

Read More

jQuery / Javascript

How do I develop a countdown timer?

Darren Hagen • January 2, 2018

So i’m getting married this year…I know, congratulations. Well, during the development of my wedding website I decided that I wanted to create a countdown timer that would capture the days, hours, minutes, and seconds until…

Read More

API

How can i stop my AJAX call so I can start a new one?

Sarah Berg • December 26, 2017

The use case for this was a search functionality that was triggered on keyup.  That said, the more a user typed the ajax call would fire again and again till the search had queued so many…

Read More

jQuery / Javascript

How Do I Prepopulate a Form Field Based On Previous Page Input?

Ashley Wright • December 13, 2017

In this scenario, say you have a newsletter signup form on your homepage with one single email field to fill out. On submit of this field you would like the user to be sent to a new…

Read More

jQuery / Javascript

Can strings be compared fuzzily?

Mike Wang • November 20, 2017

It’s Thanksgiving week and you’re putting the finishing touches on your new e-commerce site, just in time for Black Friday. You’ve just gotten the product search functionality working, so you kick back in your chair and…

Read More

jQuery / Javascript

How do I update the URL on button click?

Biz Cook • November 14, 2017

Do you have AJAX on a page and want to change the URL accordingly based on the new content? The following code will get rid of the last bit of the slug on your page and…

Read More

jQuery / Javascript

How do I place SVGs on a Google Map using Custom Overlays?

Loren Wright • October 31, 2017

The Google Map API is very robust and allows you to do almost any customizations that you need to do to a map. One of the features that Google has created is Custom Overlays. A custom…

Read More

jQuery / Javascript

How do I make numbers ‘roll up’ when counting?

Darren Hagen • October 23, 2017

During a project recently we were tasked with demonstrating a number counting up in the way of rolling. A good way to describe the action is how you would see an old gas pump price or…

Read More

jQuery / Javascript

Can I Make Google Maps Match the Color Scheme of My Site?

Brent Reno • September 8, 2017

It’s great having google maps embedded on a site, but sometimes the default color scheme just doesn’t look great with everything else going on. For the purpose of this, let’s assume the API key is already…

Read More

jQuery / Javascript

Uncaught TypeError: .sort is not a function ?!

Sarah Berg • August 16, 2017

So i’ve done some ajax calls and wanted to sort my results and ran into the error: Uncaught TypeError: resultData.sort is not a function This is because the returned data is an object and jQuery’s sort…

Read More

jQuery / Javascript

Are there vanilla alternatives to jQuery?

Mike Wang • June 30, 2017

jQuery definitely has its shining moments. After all, there must be a reason for its enormous popularity. However, there are also many situations where the use of jQuery adds HTTP requests and data to transfer without enough…

Read More

jQuery / Javascript

Is There a JS Library for Generating a PDF?

Brent Reno • June 27, 2017

jsPDF is a Javascript library used to generate  PDF files, that can be downloaded, printed or emailed. Getting Started: To star declare a new instance of jsPDF. var doc= new jsPdf(); You can pass parameters in…

Read More

jQuery / Javascript

Can the Wysiwyg in WordPress have a custom Color Swatch Library?

Biz Cook • June 12, 2017

The pre-determined color swatch options in a wysiwyg are colors that usually clash with the overall branding of the website. To encourage the content editor to use colors that coincide with the branding identity of an…

Read More

jQuery / Javascript

Is it possible to have a React Front End for your WordPress Site?

Loren Wright • May 30, 2017

As of WordPress 4.7, developers are able to use what is called the WP REST API out of the box without the need for any additional plugins. The REST API takes all of your WordPress posts,…

Read More

jQuery / Javascript

What Should I Use to Make Custom Select Fields?

Ashley Wright • May 5, 2017

If you’re looking for a way to customize your select fields, I would recommend Select2.js. Select2 allows you to easily style the select field itself as well as the dropdown list below. Some of the options I’ve…

Read More