Why Not?

What shall we do today…

Tag: css

Making Usable Frameworks and SDKs

User experience is one of the most important parts when developing a project. Users should never have to think or fight with your product if you wish for it to succeed. If you look at most of the successful web applications today, the simplicity of the user experience if prevalent.  Gmail and Google Calendar are [...]

Customize the CSS of Dojo’s Tab Container

A few weeks ago I developed a page on Jazz.net that required the functionality from dojo’s dijit.layout.tabContainer. This is a great widget that quickly adds some great organization and functionality to your page. The problem I ran into was customizing the CSS of the Tab Container. This is not a simple task as dojo’s templating [...]

jQuery: Remove All List Elements but First One

Here is a quick jQuery snippet to remove all DOM elements from a list except for the first one: $(“li:not(:first)”).remove(); Where would this be useful? Say you are adding user choices to a list for a query and you have a remove event attached to each item. But you want the user to be able [...]

Retrieving the pixel location of a DOM element

jQuery is an awesome javascript library that GREATLY simplifies iterating through various elements in the DOM, retrieving various attributes of elements, and makes the amount of code you write smaller. In this post I am going to explain a snippet of code that will grab the x and y pixel coordinates of any element in [...]