Re: capture 'Paste' event in text-area



David Mark schreef:
On Dec 5, 6:56 am, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@xxxxxxxxxxxxxxxx> wrote:
David Mark schreef:



On Dec 5, 4:11 am, Erwin Moller
<Since_humans_read_this_I_am_spammed_too_m...@xxxxxxxxxxxxxxxx> wrote:
RJ schreef:
The scenario is.... there is a text-area that is used as chatbox where
user enters their text msgs for chatting ..now it has a fixed width
but the height increases according to the content.... now the problem
that i am facing is whenver i do a cntrl+v on to the textarea , the
height of the textarea does not increase according to the contents.
I tried capturing the cntrl key event using "event.ctrlKey" on
"onkeypress" event, but i works only for FF and fails in IE and
chrome.
Is there any way by which i can capture 'Paste' event......
Any help wld be highly appreciated.
Thanks,
RJ
Hi,
Have a look here:http://www.quirksmode.org/dom/w3c_events.html#keyprops
Please note the listed keydown and keyup. keypress is NOT listed.
That site should not be treated as reference material. I consider it
harmful as the descriptions of the "quirks" are often confused (among
other things.)
Hi David,

That table gives a nice overview which browser supports which metakeys.
Allthough I never use quirksmode as a reference, its listings with
compatibilities are useful and pleasantly presented and easily understood.

Since the OP had troubles with support in different browser for the
keypress this seems like a good place to start reading.

Which website would you advise to look up this kind of information?


Depends on what kind you mean.

I mean the kind that says which browser(version) supports which metakey.


Quirksmode.org is okay for an overview
of (some) browser differences, just ignore the attempts at explanation.

I take your word for it their explanations are bad.
I possibly couldn't comment on that myself since I never used that site for anything else than quick compatibility lookups. ;-)

But if you have some other resource that collects this kind of information ('this kind' meaning: 'browser compatibility lists for a lot of stuff an every day webdeveloper needs'), I'll be glad to hear where to find it.
This quirksmode happens to be the only one I know of that has so much.

Regards,
Erwin Moller


--
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult."
-- C.A.R. Hoare
.



Relevant Pages

  • Re: Re[2]: [PHP] Re: Detecting devices i.e. PDA, Mobile
    ... XHTML, for compatability. ... >> browser producers seem to have their own idea of what a standard is ... But in the meantime you're sacrificing forwards compatibility ... >> The ideal way of detecting a wap browser is through the accepted mime ...
    (php.general)
  • Re: ASP.NET on Macintosh OS X
    ... browser that is available for Windows. ... we'll be using Microsoft servers to host such an application. ... > compatibility such as on both WINDOWS/PC and Macintosh PC., ... Generally, as for a browser-based web application, the platform ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: jquery ,get the id of the input in order to delete input row?
    ... not attribution novel. ... Isn't it likely that the browser will have the JQuery file cached? ... And if you write your own Javascript, it won't ever have compatibility ...
    (comp.lang.javascript)
  • Re: Web page will not open....
    ... users to "turn on Compatibility View mode on your browser". ... indicates to me that the use of IE8 is creating a problem for him. ... One of the neat things a browser can do, is offer you the option to ... "Attention Internet Explorer Version 8 Users ...
    (microsoft.public.windowsxp.general)