New CSS Fix
Posted in General
Last dog watch, 2 bells (7:15 pm)

I just noticed that the new CSS fix I put in place for IE seems to have broken the calendar—you don’t see the dates that have posts for them in blue anymore, they’re all the same color. Well, back to the drawing board. At least it’s not such a noticeable problem like it was before.

Leave a Comment »
AJAX
Posted in Tech
Last dog watch, 2 bells (7:14 pm)

I’ve been working on a customization for our internal database that lets you look up cities and states based on postal codes. Part of the requirements include: on a code match, populate the city and state (and optionally country), if there are multiple matches (typically alternate town names), present a choice to the user and populate the fields based on feedback. If there are no matches, present a form to fill out this detail and submit it back to the database and populate the local fields with the information.

From what I understand about it (which honestly isn’t much), I believe AJAX is my best option. I have a (not-too-short) javascript function that populates a state field based on postal code input—as it’s being inputted, so if you type 97 the instant the ‘7′ goes in the state shows OR. Some postal codes require 3 or even 5 digits before they can be zeroed in on.

I also compiled a database of zip codes and states in the US and wrote an accessor page that retreives this information based on an argument (a postal code) sent to the page. I still need to get my javascript to call out to this page when I’ve got 5 digits and populate the city with data.

Heck I’m half-way there. Um, wait. Maybe not.

Leave a Comment »