How to detect Key Press that works for IE, Firefox etc ?

T

Thomas 'PointedEars' Lahn

Asen said:
What is irrelevant here? I quote specification for the problem, which
are you talking about.

There was no need to quote the Specification to me as a *disproof* as I
suggested what I did because I already knew what happened. And as it was
confirmed eventually by yourself, you did not really know what you were
talking about at the time.
You wrote "it is error-prone", but you use exactly in the same manner.

And if you had cared to notice, I wrote the code below *before* I wrote that
(the `indeed' should have been an indication). But even that hardly
matters, because:
| for (var tRows = tBody.rows, i = tRows && tRows.length; i--;)

Here again `tRows` refer host object and again we have type
conversion. Please, don't suggest something which you don't observe.

This is a quick hack, untested code, evident to all who can read in context.

Somehow I doubt your sincerity.


Score adjusted

PointedEars
 
A

Asen Bozhilov

Thomas said:
There was no need to quote the Specification to me as a *disproof* as I
suggested what I did because I already knew what happened.

I was quote specification only for clearly view of the problem for
which are you talking about. Not only for disproof your suggestion. I
did write the piece of code for example of my words, and you cannot
disproof my words at the moment. I will be happy if you disproof,
because that is only way to increase my knowledge. I am not post here
just for the blame you. I read c.l.js and post here only for my
knowledge. If i have any problems in the real life, i don't go here
and start to blame everything.
And as it was
confirmed eventually by yourself, you did not really know what you were
talking about at the time.

Nonsense, absolutely irrelevant with the current thread. You can make
conclusion for everything:

"You don't know, what are you talking about!"

OMG, here isn't place for competition about dicks length!

Somehow I doubt your sincerity.

Don't doubt. I respect you. You have lot of erudition, but if you use
that erudition in proper way, you can have opportunity for big
things.
When i sayed "Regards" that's mean => Regards, and i hate ironic.

Sincerity.
 
D

Dmitry A. Soshnikov

Krist said:
On 12 Des, 03:21, JR <[email protected]> wrote:
[...]

Reasonable people use a function expression here instead.

Pathos.

Reasonable people use an `if' statement here instead.

Troll pathos ;) Here's the main goal in how it "sounds": "let it be
the same or "default" value". The most useful form would be already
mentioned `e ||= window.event;`, or could be used also mentioned `!e
&& (e = window.event);`. All the cases are good. So, your answer just
troll pathos. Any problem? ;)
Responsible developers feature-test host object's properties before they are
accessing them in a type-converting test.  Then again, responsible
developers would not try this whole nonsense in the first place.

Pathos.


  window.alert(...);

Pathos. Plain `alert` in this concrete host environment can be better
solution ;)

Said the blind led by the blind.

Troll pathos.

Any questions? ;)

/ds
 
D

Dmitry A. Soshnikov

I was quote specification only for clearly view of the problem for
which are you talking about. Not only for disproof your suggestion. I
did write the piece of code for example of my words, and you cannot
disproof my words at the moment. I will be happy if you disproof,
because that is only way to increase my knowledge. I am not post here
just for the blame you. I read c.l.js and post here only for my
knowledge. If i have any problems in the real life, i don't go here
and start to blame everything.


Nonsense, absolutely irrelevant with the current thread. You can make
conclusion for everything:

"You don't know, what are you talking about!"

OMG, here isn't place for competition about dicks length!



Don't doubt. I respect you. You have lot of erudition, but if you use
that erudition in proper way, you can have opportunity for big
things.
When i sayed "Regards" that's mean => Regards, and i hate ironic.

Sincerity.

Just stop to justify before that gotten a false idea of himself troll.
I cannot look how he's talking with you (and anyone here) - again from
the top and without any respect to interlocutor. Don't you see that
such talking manner is just a troll provocation who has Megalomania?
Don't pay much/any attention ;)

/ds
 
T

Thomas 'PointedEars' Lahn

Jorge said:
!e && (e= window.event);

That is hardly better readable or more efficient than

if (!e)
{
e = window.event;
}

and there is still the lack of proper feature-testing. While you could do
that in an expression, too, it would become quite a mess very quickly.


PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,082
Messages
2,570,586
Members
47,209
Latest member
Ingeborg61

Latest Threads

Top