An interesting problem I came across recently was trying to get Zero Clipboard to work in an AJAX loaded div. Zero Clipboard is pretty much the only way to copy text to the user's clipboard that works across browsers. There is no native way to do this, so it floats an invisible movie on top of a DOM element. Yes, your users need to have Flash installed for this to work.
The issue is as follows:...
While I was at university, there was a professor in the Computer Science college who was known as incredibly difficult. Dr. D was unquestionably bright, having two doctorates, one in Mathematics and one in Computer Science. He knew his material, and while his Chinese accent was at times difficult to understand, it wasn't a major hindrance to learning the material.
I had Dr. D for 2 classes:...
There are a ton of examples on how to create vertical drop-down menus, but hardly any on how to create a completely horizontal drop-down menu. I messed around with this quite a bit until I got what I was looking for, and then, once again, I stripped it down to a minumum to make it easy to understand. Just wrap an unordered list with a div tag using id="hmenu".
From there you can add your own cs...
Here are a few simple websites I've worked on in the past month or so:
...
Sanitizing data in PHP is nothing short of an art form. I love the language, don't get me wrong, and while some people rail (see ruby ::wink wink::) against the non-conformity of naming conventions, and auto casting of variables as evidence of poor design, I think there's no better language for beginners to start producing viable code quickly.
I wanted to present a simple easy to understand sanit...