HTML/JS: Using Radio Inputs to Change a Form’s Action

Brackets LogoHave you ever wanted a selection, via radio inputs, to change the outcome of a submit button’s action?

For a simple solution, you may have come to the right place.

Amidst revisions to a web project at my job, I found myself needing to answer the above question.┬áI had to demonstrate a relatively simple user-experience┬árequirement: provide a list of radio inputs that would control the user’s destination once they hit a contextual “submit” button. Fortunately, one of our lead web developers walked me through an incredibly simple inline javascript solution. It worked on the first try, and it’s so simple that I felt compelled to share it.

Continue reading

Advertisements

Photoshop: Import multiple images into one layered document

I was forced into a corner at work this week. I needed to layer dozens of images into the same Photoshop document.

If I was a fool, which I am, I would open Photoshop, then proceed to File > Open all of these images at once. Afterwards, I’d choose one as my Photoshop document, slowly drag-and-dropping the rest on top of it, automatically creating their own layers one at a time.

Not to mention this means watching Photoshop suck the life-force out of your computer as it opens a new tab for each image. But no longer. I have learned, and now that my work week is over, I will share. Continue reading