YouTube – The Internet of Things

Advertisements

Drag and Drop with Javascript

I found the following article by Mark Kahn: How to Drag and Drop with Javascript while working on a solution for dragging and dropping boxes on web page. Mark’s example works really well except for one small problem: in Firefox, Safari, and Chrome, the boxes disappear as you drag them on top of each other…only to reappear after you’ve released the mouse button. IE works properly. While not a big issue, it’s a little annoying.

I did a little digging and found the solution. In the mouseMove function (shown in the article), there are two lines of code that find the current position of the box that’s being moved:

dragObject.style.top  = mousePos.y – mouseOffset.y;
dragObject.style.left = mousePos.x – mouseOffset.x;

In order to work properly in Chrome, Firefox, and Safari, the calculations need to have to include a “+’px’” to identify the coordinates as pixels:

dragObject.style.top  = mousePos.y – mouseOffset.y+’px’;
dragObject.style.left = mousePos.x – mouseOffset.x+’px’;

This should work in all Javascript enabled browsers and is technically the right way to perform calculations involving pixels.

Online Storage Buyer’s Guide

InformationWeek has developed a guide to Online Storage Providers: Online Storage Buyer’s Guide. What is your organization doing regarding online storage? It’s an area that we’ve only begun to explore from an enterprise perspective.

I’d be interested to hear from anyone regarding enterprise use of online storage.

CIOs’ ‘Career Killer’ Pet Peeves — CIO — InformationWeek

Information Week put together a nice  slide show featuring 12 CIOs’ favorite pet peeves: Slideshow: 12 CIOs’ ‘Career Killer’ Pet Peeves — CIO — InformationWeek.

My favorites:

Teri Takai, CIO, Department Of Defense Networks And Information Integration: “Whining, and people who have to ask permission before they do anything.”

Michael Cuddy, CIO, Toromont Industries: “The phrase ‘Someone needs to’ and sentences that start with ‘Yeah, but…'”

    JESSE BROWN: The Guru

    A funny video that uses business jargon picked up from search engine listeners… Read more of this post

    %d bloggers like this: