Is there anything for Mozilla or Firefox that would be equivalent to
IE's onpaste event for a textarea? 7 26982
Mark Szlazak wrote: Is there anything for Mozilla or Firefox that would be equivalent to IE's onpaste event for a textarea?
I should add that using onchange presents a problem since the event
doesn't fire until the textarea looses focus. Whatever solutions that
exist need to work like onpaste without the focus issues of onchange.
Mark Szlazak wrote: Mark Szlazak wrote:
Is there anything for Mozilla or Firefox that would be equivalent to IE's onpaste event for a textarea?
There is no equivalent to onpaste event for a textarea, as far as I
understand your post.
"Fires on the target object when the user pastes data, transferring the
data from the system clipboard to the document." http://msdn.microsoft.com/workshop/a...ts/onpaste.asp
I should add that using onchange presents a problem since the event doesn't fire until the textarea looses focus. Whatever solutions that exist need to work like onpaste without the focus issues of onchange.
Maybe if you could provide an url showing how your script works for
MSIE, I could have a look at it and maybe propose an alternative.
DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Mozilla 1.7.6 :)
DU wrote: Maybe if you could provide an url showing how your script works for MSIE, I could have a look at it and maybe propose an alternative.
DU
Thanks for the offer DU but I do have alternatives. However, I need to
seriously consider this particular option if a viable one exists.
Mark Szlazak wrote: Is there anything for Mozilla or Firefox that would be equivalent to IE's onpaste event for a textarea?
You could try to use
<textarea oninput="..."
with Mozilla, of course it doesn't fire only for text being pasted but
also for other text manipulation like cutting text but at I think it is
the only event handler in Mozilla and HTML documents being fired when
text is pasted into a text control.
--
Martin Honnen http://JavaScript.FAQTs.com/
Martin Honnen wrote: Mark Szlazak wrote:
Is there anything for Mozilla or Firefox that would be equivalent
to IE's onpaste event for a textarea? You could try to use <textarea oninput="..." with Mozilla, of course it doesn't fire only for text being pasted
but also for other text manipulation like cutting text but at I think it
is the only event handler in Mozilla and HTML documents being fired when
text is pasted into a text control.
--
Martin Honnen http://JavaScript.FAQTs.com/
That will work just fine. Thanks.
Martin Honnen wrote: Mark Szlazak wrote: Is there anything for Mozilla or Firefox that would be equivalent to IE's onpaste event for a textarea?
You could try to use <textarea oninput="..." with Mozilla, of course it doesn't fire only for text being pasted but also for other text manipulation like cutting text but at I think it is the only event handler in Mozilla and HTML documents being fired when text is pasted into a text control.
frm.ctlName.add EventListener(" DOMCharacterDat aModified",
function(e){myE ventHandler(e); }, false);
This method works, but it has several minor bugs which I logged at: https://bugzilla.mozilla.org/show_bug.cgi?id=285272
Also, note that if you do something like select the 5 in 54321
and then press 6 (changing the text to 64321) you will fire twice:
The first time the value will be 4321,
and the second firing will have 64321
Csaba Gabor from Vienna
ok
----------------------------------------------
Posted with NewsLeecher v2.0 Beta 5
* Binary Usenet Leeching Made Easy
* http://www.newsleecher.com/?usenet
---------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AP |
last post by:
LS,
Is their a way of using then command 'onPaste' and 'onDragLeave' or an
alternative in PHP.
Needed to paste a selected text in a textarea and after paste executing a
PHP script without to use a submit button.
like with javascript: <body onload="init()" onDragEnter="setupDrag()"
onDragLeave="handleDrop()" onBeforePaste="handleBeforePaste()"
onPaste="handlePaste()" >
|
by: John Reese |
last post by:
Mozilla, Firefox, Thunderbird, and so forth use this awful format
called MORK to store all kinds of things: which messages you've read
in a newsgroup, headers and indexes into the mbox file of messages in
a mail folder, and address books. It's documented to some extent
here:
http://www.mozilla.org/mailnews/arch/mork/primer.txt
Does anyone know of a Python library for parsing these files? A
single file basically just stores the...
|
by: Red_Indian |
last post by:
Hi
How do I accomplish the following functionality in Mozilla/ Firefox:
document.form.textbox.disabled = false
if I want to conditionally enable a text box that was disabled by default.
The above code works fine in IE, but doesn't in Mozilla. I have seen
somewhere the Mozilla equivalent of the same, but can't quite find it.
|
by: Aidan |
last post by:
I rely heavily on MSDN for documentation when it comes to
HTML/DHTML/JavaScript/CSS but as a result I often have problems getting my
stuff to work in Netscape/Mozilla/Firefox. I like the MSDN online
documentation
(http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/re
ference/objects.asp) because it has complete lists of DHTML objects,
properties, methods, collections and event and for each element you can
easily view...
|
by: Paul Gorodyansky |
last post by:
Hi,
FAQ tells how to insert (or replace0 a text at a caret position in
Mozilla (and same works for Opera 8+), for example, at
http://www.faqts.com/knowledge_base/view.phtml/aid/1661
it talks about that -
....
textControl.setSelectionRange(oldSelectionStart + newText.length,
oldSelectionStart + newText.length);
| |
by: News |
last post by:
I have a page up trying to learn how to ID a browser and other info.
http://wyght.com/warren/testPos.html
here is the code
<script type = "text/javascript">
var space = ", ";
var name = navigator.appName;
|
by: rjdougan |
last post by:
I am not a developer but need some help with scripts for a client.
I have a script to handle form validation and one that handle mouseover on menu.
The form validation script works fine by it self in both Firefox and IE. When the menu mouseover script is introduced the form validation only works in firefox not in IE.
Here is the form validation script
----------------------------------
function verifyForm(form_id) {
|
by: svsenthilkumar |
last post by:
hai ,
i got an error in javascript, when upload a file in a form,
the code is working properly in IE but i got javascript error in Mozilla firefos
what is mean by error and how to rectify that.
the error is
Error: uncaught exception: <script language="javascript">
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |