Sucky Tab Indexes.
Monday, June 29th 2009 at 21:22pm.
Over the weekend, I spent a few hours jiggling files about for the main website and projects area, which allows for easier management on my part.
Whilst I was doing this, I made a small number of changes to some of the files; which meant I had to up-date the tabindex attribute on most of the links. Ever since I began using them I have hated them. They are nothing but a pain in the rear to organise. Every time I add a link into the middle of others, the tabindex below has to be increased to avoid conflict. For some reason, I end up needing to add new links every now and then.
I do have an idea on how to avoid this level of up-dating, but it’s finding the motivation to edit the damn things again.
Also, if anyone knows of a way php can be used to auto-magically increment the number every time a tabindex attribute is found throughout a page, let me know! I had tried to do this some time ago, but failed. It would be nice to be able to use that idea instead.

Stored under:
Tagged:
Tuesday, June 30th 2009 at 01:48am
Seth says:
Use a form handler function.
$tabIndex = 0;
function makeInput($name, $type) { // Handle name and type, and increment $tabIndex. Write out form field. }
()
Tuesday, June 30th 2009 at 05:15am
Tony says:
Of all the entries you could have replied too . . .
Hai!
Will that work on the links, or is it only for forms? If it works on links, you will need to explain; as I barely know php.
The form side of it I think I could manage.
()