September 2010
3 posts
7 tags
jQuery UI Draggable Grid & Snap Callback
I had the unfortunate privilege of discovering a minor bug logic flaw in the jQuery UI $.draggable() function. But first, a bit of background: I’m working on a worklfow creation tool in which states are created and assigned actions. States can be linked via a four point anchor system, which is where things get a bit messy. Our draggable state DIVs are set up to use a 6x6 grid, meaning they...
4 tags
In-Page Element Updating/Refreshing
if ($('.autoupdate')[0]) {
setInterval(function () {
$.get(document.location, function (data) {
$('.autoupdate').each(function () {
var html = $(data).find('#' + $(this).id).html();
});
});
}, 10000);
}
This is a great snippet from the Designer/Developer community at Forrst. Essentially it refreshes the content of any element...
4 tags
“Let’s be under no illusion - there is no relationship between...
August 2010
5 posts
6 tags
You’re riding a high, you just put together a design that you couldn’t be more...
– It’s just a touch melodramatic - but accurate to a degree :(
Design is a Drug (via jessedodds)