473,785 Members | 2,811 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

onPaste in PHP

AP
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="se tupDrag()"
onDragLeave="ha ndleDrop()" onBeforePaste=" handleBeforePas te()"
onPaste="handle Paste()" >

br,
Albert
Jul 17 '05 #1
1 2409
AP wrote:
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="se tupDrag()"
onDragLeave="ha ndleDrop()" onBeforePaste=" handleBeforePas te()"
onPaste="handle Paste()" >


Nope, because these are client-side events. PHP only cares about the data
received from the client by (form) submission...
JW

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1280
by: Mark Thomas | last post by:
I need to get text pasted into a form field at the time it was pasted. The value of the field is still blank in the onpaste handler. The onchange event is not triggered until the input loses focus, and I want to execute a function before that happens. How can I do that? Thanks.
7
26999
by: Mark Szlazak | last post by:
Is there anything for Mozilla or Firefox that would be equivalent to IE's onpaste event for a textarea?
7
2745
by: Bani | last post by:
Is it possible to get browser-menu events (IE) into Javascript? I have a special copy/paste on the onkeydown event (ctrl+c/ctrl+v). Now the users would like to trigger it also from the browser menu.
4
5186
by: leodippolito | last post by:
Hello, How can I detect the press of CTRL + V in an input of type text? TIA, Leonardo
3
4793
by: addi | last post by:
I'm looking to perform input validation on an HTML input text element; specifically, I'm looking to prevent anything other than numerical characters from being entered. I've got it working just fine for English characters by using an 'onkeypress' event handler, where basically all that is done is a regular expression check of the character represented by window.event.keyCode against a string containing "0123456789". The problem I'm...
10
1920
by: Rob Nicholson | last post by:
In our application, we've added a bit of JavaScript that updates a title as the user types into a textbox. To trigger this, we patch into the "onkeyup" and "onpaste" events: FirstName.Attributes("onkeyup") = "ChangeTitle();" FirstName.Attributes("onpaste") = "ChangeTitle();" This works a treat but neither of these events fire if the user happens to enter a foreign character using the standard Windows ALT key plus numberic keypad, e.g....
3
5414
by: Jeff Paffett | last post by:
I'm trying to use the onPaste event in a text input, which according to Apple is supported. However, I get no response in Safari. Firefox works fine.
1
2467
by: yevron2 | last post by:
Hello, I need to get a paste event from the clipboard every time somthing is begin copied in windows. I used the RegisterHotKey api to register ctrl +v and it works fine. The problem is that you can paste somthing using an edit menu... Does anyone know how can i catch a paste event from the clipboard? Thank you!
1
3123
by: amita1227 | last post by:
I am using a asp:textbox and its onpaste event to count the characters in textbox when the user pastes some text in textbox from a word document. the code that i am using is function countchar1(txtCharCount) { var data = window.clipboardData.getData("Text"); txtCharCount.value = data.length; return true; }
0
9645
marktang
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...
0
9480
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,...
0
10153
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6740
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();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
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
2
3654
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.