From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- files/it/web/api/datatransfer/getdata/index.html | 161 -------------------- files/it/web/api/datatransfer/index.html | 183 ----------------------- 2 files changed, 344 deletions(-) delete mode 100644 files/it/web/api/datatransfer/getdata/index.html delete mode 100644 files/it/web/api/datatransfer/index.html (limited to 'files/it/web/api/datatransfer') diff --git a/files/it/web/api/datatransfer/getdata/index.html b/files/it/web/api/datatransfer/getdata/index.html deleted file mode 100644 index 635da432ed..0000000000 --- a/files/it/web/api/datatransfer/getdata/index.html +++ /dev/null @@ -1,161 +0,0 @@ ---- -title: DataTransfer.getData() -slug: Web/API/DataTransfer/getData -translation_of: Web/API/DataTransfer/getData ---- -
-

 

-{{APIRef("HTML DOM")}}
- -

Il metodo DataTransfer.getData() recupera i dati del trascinamento  (come {{domxref("DOMString")}}) per il data type specificato. Se l'operazione di trascinamento non include dati, questo metodo restituisce una stringa vuota.

- -

Esempi di tipi di data types sono text/plaintext/uri-list.

- -

Sintassi

- -
DOMString dataTransfer.getData(format);
-
- -

Argomenti

- -
-
formato
-
Una {{domxref("DOMString")}} rappresentante il  tipo di dato da recuperare.
-
- -

Valore restituito

- -
-
{{domxref("DOMString")}}
-
Una {{domxref("DOMString")}} rappresentante i dati trascinati per il formato specificato. Se l'operazione di trascinamento non ha dati o l'operazione non ha dati per il formato specificato, questo metodo restituisce una stringa vuota.
-
- -

Esempio

- -

Questo esempio mostra l'uso dell'oggetto {{domxref("DataTransfer")}} e dei metodi {{domxref("DataTransfer.getData()","getData()")}} e {{domxref("DataTransfer.setData()","setData()")}} .

- -

HTML

- -
<div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)">
-    <span id="drag" draggable="true" ondragstart="drag(event)">drag me to the other box</span>
-</div>
-<div id="div2" ondrop="drop(event)" ondragover="allowDrop(event)"></div>
-
- -

CSS

- -
#div1, #div2 {
-    width:100px;
-    height:50px;
-    padding:10px;
-    border:1px solid #aaaaaa;
-}
-
- -

JavaScript

- -
function allowDrop(allowdropevent) {
-    allowdropevent.target.style.color = 'blue';
-    allowdropevent.preventDefault();
-}
-
-function drag(dragevent) {
-    dragevent.dataTransfer.setData("text", dragevent.target.id);
-    dragevent.target.style.color = 'green';
-}
-
-function drop(dropevent) {
-    dropevent.preventDefault();
-    var data = dropevent.dataTransfer.getData("text");
-    dropevent.target.appendChild(document.getElementById(data));
-    document.getElementById("drag").style.color = 'black';
-}
-
- -

Result

- -

{{ EmbedLiveSample('Esempio', 600, '', '', 'Web/API/DataTransfer/getData') }}

- -

Specifiche

- - - - - - - - - - - - - - - - - - - -
SpecificaStatoCommento
{{SpecName("HTML WHATWG", "interaction.html#dom-datatransfer-getdata", "getData()")}}{{Spec2("HTML WHATWG")}} 
{{SpecName("HTML5.1", "editing.html#dom-datatransfer-getdata", "getData()")}}{{Spec2("HTML5.1")}}definizione iniziale
- -

Compatibilità dei browser

- -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support43.5{{CompatGeckoDesktop(10)}} [1]123.1
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatGeckoMobile(10)}}[1]{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
- -

[1] in versioni di Firefox precedenti alla 49, questo metodo restituisce sempre una lista vuota se il tipo mime non è in una white list.

- -

Vedere anche

- -

{{page("/en-US/docs/Web/API/DataTransfer", "See also")}}

diff --git a/files/it/web/api/datatransfer/index.html b/files/it/web/api/datatransfer/index.html deleted file mode 100644 index a821dabb6a..0000000000 --- a/files/it/web/api/datatransfer/index.html +++ /dev/null @@ -1,183 +0,0 @@ ---- -title: DataTransfer -slug: Web/API/DataTransfer -tags: - - API - - NeedsMarkupWork - - NeedsTranslation - - Reference - - TopicStub - - Web Development - - drag and drop -translation_of: Web/API/DataTransfer ---- -
{{APIRef("HTML Drag and Drop API")}}
- -

The DataTransfer object is used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.

- -

This object is available from the {{domxref("DragEvent.dataTransfer","dataTransfer")}} property of all {{domxref("DragEvent","drag events")}}. It cannot be created separately (i.e. there is no constructor for this object).

- -

Properties

- -

Standard properties

- -
-
{{domxref("DataTransfer.dropEffect")}}
-
Gets the type of drag-and-drop operation currently selected or sets the operation to a new type. The value must be none copy link or move.
-
{{domxref("DataTransfer.effectAllowed")}}
-
Provides all of the types of operations that are possible. Must be one of none, copy, copyLink, copyMove, link, linkMove, move, all or uninitialized.
-
{{domxref("DataTransfer.files")}}
-
Contains a list of all the local files available on the data transfer. If the drag operation doesn't involve dragging files, this property is an empty list.
-
{{domxref("DataTransfer.items")}} {{readonlyInline}}
-
Gives a {{domxref("DataTransferItemList")}} object which is a list of all of the drag data.
-
{{domxref("DataTransfer.types")}} {{readonlyInline}}
-
An array of {{domxref("DOMString","string")}} giving the formats that were set in the {{event("dragstart")}} event.
-
- -

Gecko properties

- -

{{SeeCompatTable}}

- -
Note: All of the properties in this section are Gecko-specific.
- -
-
{{domxref("DataTransfer.mozCursor")}}
-
Gives the drag cursor's state. This is primarily used to control the cursor during tab drags.
-
{{domxref("DataTransfer.mozItemCount")}} {{readonlyInline}}
-
Gives the number of items in the drag operation.
-
{{domxref("DataTransfer.mozSourceNode")}} {{readonlyInline}}
-
The {{ domxref("Node") }} over which the mouse cursor was located when the button was pressed to initiate the drag operation. This value is null for external drags or if the caller can't access the node.
-
{{domxref("DataTransfer.mozUserCancelled")}} {{readonlyInline}}
-
This property applies only to the dragend event, and is true if the user canceled the drag operation by pressing escape. It will be false in all other cases, including if the drag failed for any other reason, for instance due to a drop over an invalid location.
-
- -

Methods

- -

Standard methods

- -
-
{{domxref("DataTransfer.clearData()")}}
-
Remove the data associated with a given type. The type argument is optional. If the type is empty or not specified, the data associated with all types is removed. If data for the specified type does not exist, or the data transfer contains no data, this method will have no effect.
-
{{domxref("DataTransfer.getData()")}}
-
Retrieves the data for a given type, or an empty string if data for that type does not exist or the data transfer contains no data.
-
{{domxref("DataTransfer.setData()")}}
-
Set the data for a given type. If data for the type does not exist, it is added at the end, such that the last item in the types list will be the new format. If data for the type already exists, the existing data is replaced in the same position.
-
{{domxref("DataTransfer.setDragImage()")}}
-
Set the image to be used for dragging if a custom one is desired.
-
- -

Gecko methods

- -

{{SeeCompatTable}}

- -
Note: All of the methods in this section are Gecko-specific.
- -
-
{{domxref("DataTransfer.addElement()")}}
-
Sets the drag source to the given element.
-
{{domxref("DataTransfer.mozClearDataAt()")}}
-
Removes the data associated with the given format for an item at the specified index. The index is in the range from zero to the number of items minus one.
-
{{domxref("DataTransfer.mozGetDataAt()")}}
-
Retrieves the data associated with the given format for an item at the specified index, or null if it does not exist. The index should be in the range from zero to the number of items minus one.
-
{{domxref("DataTransfer.mozSetDataAt()")}}
-
A data transfer may store multiple items, each at a given zero-based index. mozSetDataAt() may only be called with an index argument less than mozItemCount in which case an existing item is modified, or equal to mozItemCount in which case a new item is added, and the mozItemCount is incremented by one.
-
{{domxref("DataTransfer.mozTypesAt()")}}
-
Holds a list of the format types of the data that is stored for an item at the specified index. If the index is not in the range from 0 to the number of items minus one, an empty string list is returned.
-
- -

Example

- -

Every method and property listed in this document has its own reference page and each reference page either directly includes an example of the interface or has a link to an example.

- -

Specifications

- - - - - - - - - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('HTML WHATWG', 'interaction.html#datatransfer','DataTransfer')}}{{Spec2('HTML WHATWG')}}mozCursor, mozItemCount, mozSourceNode, mozUserCancelled, addElement(), mozClearDataAt(), mozGetDataAt(), mozSetDataAt() and mozTypesAt are Gecko specific.
{{SpecName('HTML5.1', 'editing.html#the-datatransfer-interface','DataTransfer')}}{{Spec2('HTML5.1')}}Not included in W3C HTML5 {{Spec2('HTML5 W3C')}}
- -

Browser compatibility

- -

{{CompatibilityTable}}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support43.5 [2]10 [1] [2]123.1 [2]
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - -
FeatureAndroidAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)Firefox OSIE MobileOpera MobileSafari Mobile
Basic support{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatNo}}{{CompatIE("10")}}{{CompatNo}}{{CompatNo}}
-
- -

[1]Partial support refers to not supporting {{domxref("DataTransfer.setDragImage()")}} [CanIUse.com]

- -

[2]Does not support {{domxref("DataTransfer.items")}} property

- -

See also

- - -- cgit v1.2.3-54-g00ecf