web development

A wiki-markup style url filter for Drupal 5

Since I started using Atlassian's Confluence in a few projects, I find myself wanting to type in wiki markup everywhere. I especially like being able to create links like this:

[Title of url|url of link]

Using this markup, you can type something like this:
[John's Blog and Stuff|http://www.gobowen.com]

...and get this:
John's Blog and Stuff

Drupal MailHandler - a learning curve

My first, second and third tries at posting to this Drupal site from a cell phone have taught me a lot about the MailHandler module. They've also left me with a few questions.

Drupal usernode and Profiles in table-mode Views

On a decent sized (500+ users) Drupal 5 web site, I ran into the same problem documented here, wherein the extra fields defined for users (in the Profile module) caused each user to occupy several rows of the table in a table-mode View.

Mark Peal did a nice job describing the problem, so I'll just copy/paste it here for completeness:

In the directory table, each username appears eight times.

Clearing a CheckBox after changing a DropDownList's selection

I had an ASP.NET form, where I wanted a quick Javascript function to un-check a CheckBox if the user changed the selection in a related DropDownList. Restated, I wanted any change in the DropDownList's selected item to clear the CheckBox. The user could then (if needed) re-check the CheckBox once they're done selecting from the DropDownList.

Adding the javascript onchange() event to the DropDownList's attributes from the ASP.NET class file turned out to be the easy part. In Page_Load():

this.ddTeams.Attributes.Add("onChange", "uncheckbox()")

Setting a TextBox 'width' with ASP.NET

Even though I've been using Firefox as my primary browser for months now, I still haven't spent much time checking some of my old (but production) code for compatibility. After taking a quick look, I can't believe customers haven't complained...

In that context, I noticed that Firefox doesn't respect the 'width' setting for the ASP.NET TextBox control. IE handles this just fine, but FireFox (and probably other browsers) just stick with the 'default' TextBox width, which is often too long/wide.

Three great addons for Firefox

I found a few great addons for Firefox. They aren't new, just new to me, and already they're helping me with one of my weakest web development points...css.

  • Firebug - quoted from the Mozilla web site: "integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page..." Yeah, it does all that, and in a really neat way. For me, it makes css tweaking much easier.

Apache Virtual Hosting problems

I thought I had a handle on setting up virtual hosts in Apache, but it looks like I knocked this site off the web for several days after reconfiguring my Subversion virtual host...oops. Back to the web to figure out what I'm doing wrong.

Syndicate content