June 23rd, 2009 | 38 Comments »
A couple of days ago I explained how I added controls to a table that when clicked, moved a table row (TR element), up and down within a table.
You can take a look at the solution for that problem by reading “Sortable table rows with jQuery“.
As so often happens with the code I write, I saw an opportunity to tweak and refine it. I was prompted to make these changes when a colleague complained that one should be able to drag and drop the rows within the table.
Again I found that the problem wasn’t so hard to solve as I first imagined. Read on and I will show how I achieved it.
Read the rest of this entry »
VN:F [1.4.6_730]
Rating: 4.7/5 (77 votes cast)
June 21st, 2009 | 20 Comments »
I was working on a web application today and found myself needing to do something I haven’t needed to do previously. It has probably been explained far better elsewhere and is more than likely a common task for most people but for me it was something new. I’ve done so much on the web and it’s always good to be reminded that there is plenty I haven’t touched yet.
Read the rest of this entry »
VN:F [1.4.6_730]
Rating: 4.3/5 (25 votes cast)
November 11th, 2008 | 4 Comments »
It would have been quite a bit easier to outline what a cat should do if I were, in fact, a cat. As it happens though, I am not a cat, not even a little bit of a cat. Labelling myself as a “cat person” may have confused you there but this was just to say that I think cats are great animals, fantastic pets and one of the few animals that, if nothing else, make hilarious video montages.
My JavaScript Cat’s requirements aren’t going to come from the mind of a cat, requirements that I expect wouldn’t be much more than:
- Find nice sunny window-sill to sleep on
- No matter where I am, arrive home and start meowing when owner rattles the cat biscuit box
- Attack own shadow, fall off bench, jump ridiculously high at unexpected noises or something similarly comedic when a video camera is around
No, my JavaScript Cat will be modelled on what I have observed of these domesticated felines and… actually, scrap that. My observations include all of the points listed above, maybe I am a cat?
Read the rest of this entry »
VN:F [1.4.6_730]
Rating: 5.0/5 (2 votes cast)
October 27th, 2008 | 5 Comments »
Although I have owned the domain name for quite some time, it was a simple thought a few weeks ago that prompted me to get a site up and actually blog about something. The idea was “A JavaScript Cat”.
I like cats but I rent and therefore I am not allowed to have pets. I was pondering this one night as I was drifting off to sleep and initially I was just thinking of ways I could get a cat and keep the fact away from my landlord.
Read the rest of this entry »
VN:F [1.4.6_730]
Rating: 4.7/5 (3 votes cast)
March 7th, 2008 | No Comments »
Clean Up Your Page, Removing Bad Behaviour
When developing websites, it’s good practice to separate behaviour (JavaScript) from structure and presentation using The Document Object Model (DOM). This indepth tutorial is all you’ll need in order to get a good understanding on how to do it.
Read the rest of this entry »
VN:F [1.4.6_730]
Rating: 4.0/5 (2 votes cast)