Buffy: How was school today? Dawn: The usual. A big square building filled with boredom and despair. Buffy: Just how I remember it.

'The Killer In Me'


Buffistechnology 2: You Made Her So She Growls?  

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


tommyrot - Nov 15, 2005 5:24:03 am PST #5566 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Really, at this point I think the best course of action for Sony is ritual suicide.

eta:

"You know, in certain older civilized cultures, when a major corporation has failed as badly as you...."


Jon B. - Nov 15, 2005 5:29:01 am PST #5567 of 10003
A turkey in every toilet -- only in America!

Although I can't get the link (where this info came from) to load.

Here's one reference: [link]


§ ita § - Nov 15, 2005 5:30:15 am PST #5568 of 10003
Well not canonically, no, but this is transformative fiction.

I knew that was coming, tommy -- I was too lazy to check the wording myself!


tommyrot - Nov 15, 2005 5:33:16 am PST #5569 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

I knew that was coming, tommy -- I was too lazy to check the wording myself!

I pulled the wording from memory (pretty sure it's close). Think of all the time I'll save by not having to google Serenity quotes, and all I had to do was see the movie seven times in the theater.


tommyrot - Nov 15, 2005 10:54:24 am PST #5570 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

In a web page, why does the javascript onblur event get fired for a select combobox when I hit the 'Esc' key after typing into the select combobox?


Eddie - Nov 15, 2005 10:59:57 am PST #5571 of 10003
Your tag here.

In a web page, why does the javascript onblur event get fired for a select combobox when I hit the 'Esc' key after typing into the select combobox?

The onblur event fires when a control loses focus. Hitting the Esc key causes it to lose focus (IIRC).


tommyrot - Nov 15, 2005 11:09:32 am PST #5572 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Well, that's... dumb counterintuitive.

Huh. The onChange event fires too. That's less counterintuitive, but still not what I want.

OK, so I need to use the onKeyDown or onKeyPress events to set a flag when the user hits escape, which will tell the functions that the onChange and onBlur events call to do nothing for that case. Then I need to reset the flag back. It's that setting the flag back part that bugs me - I can't think of a non-kludgey way to do it. And it needs to be set back after all the events are done firing.


Eddie - Nov 15, 2005 11:54:57 am PST #5573 of 10003
Your tag here.

If memory serves, the events are fired in order, so you could try setting the flag back in the last event. I can't find a definitive listing of the event order offhand, but I'm sure a little experimenting will tell you where to put it.

I'm thinking something like this at the top of the last event's function:

if ($flag) { $flag = 0; return; }

One other thing you might try from the onkeypress event's function is to set the subsequent events to null:

document.[formname].[controlname].onblur = null; document.[formname].[controlname].onchange = null;

I'm not sure if that'll kill those events for good, or for just that execution, so play around with it.

Not sure if I'm being helpful, but maybe it'll give you some ideas.


tommyrot - Nov 15, 2005 12:39:38 pm PST #5574 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Thanks Eddie.

My boss and I messed around with it, and he decided that the whole thing was just too complicated to mess around with just to fix a tiny bug. (There's pages of code associated with just that one select combobox.)


§ ita § - Nov 15, 2005 4:09:49 pm PST #5575 of 10003
Well not canonically, no, but this is transformative fiction.

My Powerbook's Bluetooth is erratic. As in, not there when I need it. Last time it took a lot of rebooting to get it to act right again.

Where does one start troubleshooting that? With support, or is there anything I can do myself?