Posts Tagged "JavaScript"

The Basics of Passing Values From JavaScript to PHP and Back

One of the common questions I often run into from new programmers to JavaScript or PHP is how to pass values back and forth between the two. The quagmire is that JavaScript is a client side language (most of the time) and PHP is a server-side language. Once you know how the process works when someone submits some data on the front end, and how it is manipulated and returned ...

Creating a Custom YouTube “Sparkbar”

I received a question about this a little while ago and I finally got around to making a blog post about it. The person was asking about making a custom YouTube percentage bar like the one you see on videos right above the thumbs up and thumbs down icons. Intrigued I looked at the code and boiled it down to something that perhaps you all could use for a project... ...

Context Menus With jQuery

I was tinkering around with some jQuery and created a little bit of code that I thought I would throw out into the Internet ether. I am sure it not the most efficiently optimized, but it does demonstrate some things can do with a little jQuery and the contextmenu event. I see this example as something you could easily build off of and with a little styling and a little ...

The Dangers of JavaScript Frameworks, Libraries and Plugins

The recent explosion of JavaScript frameworks and libraries in web development has been undeniable. I can think of 10 libraries right off the top of my head and I have seen a site that lists 34 libraries just for visualizations. I am happy to see such a diverse ecosystem of easy to use tools sprouting up in the web development community. Certainly some of them make development a heck of ...

Populating Multiple Drop-downs Dynamically

First off I want to say that there are multiple ways of doing something like this. Below is two ways (and I mention a third) to dynamically populate one drop down using the selection of another drop down (aka chaining drop-downs). One way we will see uses a pure JavaScript implementation and another is using a combination of JavaScript and a server-side language (here we are demonstrating PHP). After we ...

Could JavaScript Standardize the Smart Home Ecosystem?

While browsing the web today I stumbled across an article from CNN titled "The scattered, futuristic world of home automation" where the author, Heather Kelly, talks about the exciting world of home smart devices as seen at the 2013 Consumer Electronics Expo in Las Vegas. She brought up a good question, how does something as low-tech as a light connect to your smartphone? How might it get to the stage ...