| (no subject) |
[Jun. 29th, 2006|11:27 am]
Love Your Code
|
I'll kick this off with my latest accomplishment - an epic challenge spanning no less than three hours, and resulting in a masterpiece (in my opinion anyway :p)
I'm working on a moderately small project, but quite fiddly in parts. The contents of one particular drop down menu is populated using a complex two-table SQL query (how I managed that is another post, I think). Anyway, I was having the daily talk and update with my boss yesterday, and he decides that if a user knows the id number of an entry in this dropdown menu, they should be able to input it and have the menu skip to it.
Now, this is no mean task, since items in a menu are identified (and selected!) by an index number - a number which bears absolutely no resemblance to the id number we're looking for. I learnt a good deal about how a <select> breaks down in terms of the DOM, and how javascript is able to handle it.
( How I solved it, if you're interested (no code)Collapse ) |
|