a code blog by dan reed
More on Drag and drop sortable lists using jQuery
Jan 12th
Been spending some of my off time playing around with this more and more. Making some (failed) attempts at completely deciphering what it’s all doing, learning bits and pieces about jQuery along the way. I’ve come across many different methods for making the sortable lists (some easier than others) which I’ll highlight links for in a moment. One in particular has some great code for sorting lists with forms in it which is a key item I need moving forward so I’m awfully excited about that!
Table Drag and Drop JQuery plugin
What I like about this one is that it shows different things you can do with drag & drop. Key stuff is locking records and moving around and reading re-ordered records with form field data.
This one is super simple. That’s all. If you’re just looking for a simple drag & drop re-order this one is nice.
We’re just scratching the surface here… There are hundreds of more out there.
Drag and drop sortable lists using jQuery
Jan 6th
I’ve been toying around with another project in my down time that’s centered around lists. I’m a huge fan of lists in all forms (task lists, the top X lists, etc). Part of this project is having a sortable list and I feel that drag n’ drop interface is perfect for what I want to do. I put a little time into looking at samples and came across one I really liked that was simple and included some pretty basic niceties (expandable portions, compact code).
the simple task of searching for a file (by name even)
Jan 5th
Today I’m going to highlight an incredibly simple / “no shit dude” commands… The “find” command in Linux.
The story here is pretty simple. I needed to find a file by name so I used this command and blamo.. I found it! In the past I’ve always kept a local working copy of things so I could use the Finder on OS X (or Explorer on Windows, etc). My new setup has me working on a virtual machine on Ubuntu and I don’t have the luxury of using these search tools I’m used to. Luckily in this situation all I needed was to find a file by a specific name so it was simple enough. More >
Regular expressions!
Jan 4th
Every morning I wake up with an embarrassing secret. I step out of bed wondering if today is going to be the day my dirty secret is discovered. I’ve decided that after 13 years of professional development experience it’s time to come clean. I do not know regular expressions.
Manipulating selection in a textarea field using Javascript
Jan 3rd
I’ve been working on a project off and on at various levels of seriousness for sometime now. Part of the project involves parsing the ingredient list for recipes. The most frustrating part of it has not been how to code it but how the interface should work.
In a perfect world it will be tight enough to take in a recipe ingredient list and parse out the bits I need. I’m looking to extract the measurement, measurement amount and the ingredient. For the most part these tend to follow a fairly standard format that are something similar to:
1 Tbspn Baking Powder
1/2 Tspn Salt