Software Engineering in WordPress, PHP, and Backend Development

Tag: JavaScript (Page 5 of 12)

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

How To Export Trello Board Members

For a couple of projects on which I work, I use Trello almost daily.

Export Trello Board Members

Some people find it the end-all, be-all of project management. I can’t say I agree with that statement, but it definitely helps streamline certain workflows (as far as I’m concerned).

But there’s one complaint that I have regarding the application: There’s no way to export the actual list of members for a given board (at least not at the time of this writing). Sure, you can export a board, but what happens when you want to contact all of the users?

There’s no way to export the actual list of members for a given board (at least not at the time of this writing). Sure, you can export a board, but what happens when you want to contact all of the users?

Sure, you can export a board, but what happens when you want to contact all of the users? I mean, I have a list of the users and their email addresses in a separate database, but Trello doesn’t allow me to export that data.

To export Trello board members, I put together a quick script that can run in the console of Chrome (maybe others, but I didn’t test). At the very least, it will return the names of the member so you can find them in your database, assuming you have one.

Continue reading

How To Concatenate JavaScript Files with CodeKit

Of all the various build tools that are available right now (such as Gulp, Grunt, and others), I still find myself using CodeKit. I’ve been a fan of it for a long time, and it still fits well into my workflow.

Concatenate JavaScript Files with CodeKit

It’s not that I’m making a case for you to use it, but if you are using it, then there are some that it offers that aren’t immediately evident. Things that other build tools tend to make a bit easier to achieve.

For example, when I’m working on a project for WordPress that will focus on a single area of the application, such as the administration area, then I prefer to take all of the various JavaScript files I’m writing and then concatenate them into a single, minified file.

CodeKit makes this possible in two ways: Through the GUI and directives in an individual file.

Continue reading

Bootstrapping JavaScript Files in WordPress

We talk a lot about the idea of having bootstrap files in WordPress plugins, which I think are great, but we seem to limit it to those files that are responsible just for starting our WordPress plugins.

Bootstrap JavaScript File

This isn’t exactly what I meant, but I dig the picture.

I mean, hooking into plugins_loaded and then instantiating some classes, setting up a service registry, or things like that are important. But what about other components that make up our plugins?

And by that, I mean what about our JavaScript files? Should they have their way to be bootstrapped?

Continue reading

Beginner Resources for JavaScript and jQuery

This month, I published two articles on Envato about resources for JavaScript and jQuery.

For those who get involved in a form of development – be it back-end, front-end, or some other type of developer – we end up forgetting what it was like not to know how to do so something. It’s kind of like riding a bike or swimming, right?

We may remember when we learned, but how much do we remember about losing our balance or not knowing how to keep our head above water?

And that’s what I think it’s like to be on the outside of a programming language, how it interacts with third-party components (like the browser or the filesystem), and how the language is structured.

Because of that, I think it’s important to publish resources periodically on topics like this for those who are looking to get started.

Continue reading

Detecting Copy and Paste in JavaScript

Detecting copy and paste in JavaScript is not something that’s new to web development. How you do it may vary, though, depending on the set of tools you’re using.

Cut and Paste in JavaScript

Cut and paste, not cut and tape. And not like this.

Given I focus primarily on WordPress, the majority of the JavaScript I write uses jQuery. And though there are a number of ways you can go about doing this (which I’ll talk about later), some of them are deprecated (though they still work).

Anyway, so I was specifically looking for a way to handle the case where a user pastes content into a field using keyboard shortcuts.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑