Wednesday, August 27, 2008


Today, I start by discovering a solution and a problem.

Solution: IE 7 and Firefox 3 do not treat <button> elements the same. If IE sees a button of type submit, it will assume that what you want to do when someone clicks this button is to submit the form; if there is any JavaScript in the onclick event, it will run that in addition to submitting the form. Firefox sees the JavaScript and runs it instead of submitting the form.

This is kind of a problem if your JavaScript calls the submit() function. :)

So I changed the type from submit to button and everything was fine.

Then I found my problem. We have passwords in a database, I want to check the user's password against the database password. Done: I use <cfqueryparam> in the query to ensure they don't put funny little things in there.

But you can also change your password. If you do that, and you log out, when you log in again, I want to check for your new password. I can't do that if the query is cached. The problem is that I can't make the query un-cache (we don't have CF 8 on this server, although I'm not sure that would help much) because you can't use cacheafter or cachewithin when you use cfqueryparams.

So I need a solution for that.

After a sub-optimal day, I return home and find poop in different places, of course. Here's one spot, right by the box I want to use to return my defective headphones. And look, there's something sticking out of it, like a twig. (Um, these are indoor cats ...)

And I pick it up, but it's light, and I drop it on my hand ... oh, at least it's dry ... wait a minute.

That is kind of a twig. This isn't poop. It's a leaf.


1 comment:

  1. This post hurt my head. I don't think I'm smart enough to understand it. Sorry.

    I did understand that poop is not always poop though :-)


There was an error in this gadget