Software Engineering in WordPress, PHP, and Backend Development

Tag: JavaScript (Page 12 of 12)

Articles, tips, and resources for JavaScript-based development.

Image Flickering with a jQuery Overlay

In a recent project, I was attempting to dynamically display an overlay on top of an image that contained the image’s alternative text. The overlay was to display whenever the mouse hovered over said image and hide once the mouse blurred on the image.

Unfortunately, my first attempt at this resulted in a lot of flickering.

Continue reading

Local Variables with JavaScript’s Replace

Sometime ago, I was working on a piece of client-side code that needed to encode some data before invoking an Ajax request. Next, it needed to decode the response data.

While doing this, I experienced a nuance in JavaScript’s replace() function that required a little bit of effort in order for it to work with the degree of flexibility I needed.
Continue reading

Newer posts »

© 2024 Tom McFarlin

Theme by Anders NorenUp ↑