aboutsummaryrefslogtreecommitdiff
path: root/files/it/web/api/datatransfer
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-04-29 16:16:42 -0700
committerGitHub <noreply@github.com>2021-04-29 16:16:42 -0700
commit95aca4b4d8fa62815d4bd412fff1a364f842814a (patch)
tree5e57661720fe9058d5c7db637e764800b50f9060 /files/it/web/api/datatransfer
parentee3b1c87e3c8e72ca130943eed260ad642246581 (diff)
downloadtranslated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.gz
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.tar.bz2
translated-content-95aca4b4d8fa62815d4bd412fff1a364f842814a.zip
remove retired locales (#699)
Diffstat (limited to 'files/it/web/api/datatransfer')
-rw-r--r--files/it/web/api/datatransfer/getdata/index.html161
-rw-r--r--files/it/web/api/datatransfer/index.html183
2 files changed, 0 insertions, 344 deletions
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
----
-<div>
-<p> </p>
-{{APIRef("HTML DOM")}}</div>
-
-<p>Il metodo <strong><code>DataTransfer.getData()</code></strong> recupera i dati del trascinamento  (come {{domxref("DOMString")}}) per il <em>data type</em> specificato. Se l'operazione di trascinamento non include dati, questo metodo restituisce una stringa vuota.</p>
-
-<p>Esempi di tipi di <em>data types</em> sono <em><code>text/plain</code></em> e <em><code>text/uri-list</code></em>.</p>
-
-<h2 id="Sintassi">Sintassi</h2>
-
-<pre class="syntaxbox">DOMString <var>dataTransfer</var>.getData(format);
-</pre>
-
-<h3 id="Argomenti">Argomenti</h3>
-
-<dl>
- <dt><em>formato</em></dt>
- <dd>Una {{domxref("DOMString")}} rappresentante il  tipo di dato da recuperare.</dd>
-</dl>
-
-<h3 id="Valore_restituito">Valore restituito</h3>
-
-<dl>
- <dt>{{domxref("DOMString")}}</dt>
- <dd>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.</dd>
-</dl>
-
-<h2 id="Esempio">Esempio</h2>
-
-<p>Questo esempio mostra l'uso dell'oggetto {{domxref("DataTransfer")}} e dei metodi {{domxref("DataTransfer.getData()","getData()")}} e {{domxref("DataTransfer.setData()","setData()")}} .</p>
-
-<h3 id="HTML">HTML</h3>
-
-<pre class="brush: html">&lt;div id="div1" ondrop="drop(event)" ondragover="allowDrop(event)"&gt;
- &lt;span id="drag" draggable="true" ondragstart="drag(event)"&gt;drag me to the other box&lt;/span&gt;
-&lt;/div&gt;
-&lt;div id="div2" ondrop="drop(event)" ondragover="allowDrop(event)"&gt;&lt;/div&gt;
-</pre>
-
-<h3 id="CSS">CSS</h3>
-
-<pre class="brush: css">#div1, #div2 {
- width:100px;
- height:50px;
- padding:10px;
- border:1px solid #aaaaaa;
-}
-</pre>
-
-<h3 id="JavaScript">JavaScript</h3>
-
-<pre class="brush: js">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';
-}
-</pre>
-
-<h3 id="Result">Result</h3>
-
-<p id="EmbedLiveSample('Example'_''_''_''_'WebAPIDataTransfergetData')">{{ EmbedLiveSample('Esempio', 600, '', '', 'Web/API/DataTransfer/getData') }}</p>
-
-<h2 id="Specifiche">Specifiche</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specifica</th>
- <th scope="col">Stato</th>
- <th scope="col">Commento</th>
- </tr>
- <tr>
- <td>{{SpecName("HTML WHATWG", "interaction.html#dom-datatransfer-getdata", "getData()")}}</td>
- <td>{{Spec2("HTML WHATWG")}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName("HTML5.1", "editing.html#dom-datatransfer-getdata", "getData()")}}</td>
- <td>{{Spec2("HTML5.1")}}</td>
- <td>definizione iniziale</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Compatibilità_dei_browser">Compatibilità dei browser</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4</td>
- <td>3.5</td>
- <td>{{CompatGeckoDesktop(10)}} [1]</td>
- <td>12</td>
- <td>3.1</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatGeckoMobile(10)}}[1]</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatIE("10")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p>[1] in versioni di Firefox precedenti alla 49, questo metodo restituisce sempre una lista vuota se il tipo mime non è in una white list.</p>
-
-<h2 id="Vedere_anche">Vedere anche</h2>
-
-<p>{{page("/en-US/docs/Web/API/DataTransfer", "See also")}}</p>
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
----
-<div>{{APIRef("HTML Drag and Drop API")}}</div>
-
-<p>The <code><strong>DataTransfer</strong></code> 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 <a href="/en-US/docs/Web/API/HTML_Drag_and_Drop_API">HTML Drag and Drop API</a>.</p>
-
-<p>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).</p>
-
-<h2 id="Properties">Properties</h2>
-
-<h3 id="Standard_properties">Standard properties</h3>
-
-<dl>
- <dt>{{domxref("DataTransfer.dropEffect")}}</dt>
- <dd>Gets the type of drag-and-drop operation currently selected or sets the operation to a new type. The value must be <code>none</code> <code>copy</code> <code>link</code> or <code>move</code>.</dd>
- <dt>{{domxref("DataTransfer.effectAllowed")}}</dt>
- <dd>Provides all of the types of operations that are possible. Must be one of <code>none</code>, <code>copy</code>, <code>copyLink</code>, <code>copyMove</code>, <code>link</code>, <code>linkMove</code>, <code>move</code>, <code>all</code> or <code>uninitialized</code>.</dd>
- <dt>{{domxref("DataTransfer.files")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.items")}} {{readonlyInline}}</dt>
- <dd>Gives a {{domxref("DataTransferItemList")}} object which is a list of all of the drag data.</dd>
- <dt>{{domxref("DataTransfer.types")}} {{readonlyInline}}</dt>
- <dd>An array of {{domxref("DOMString","string")}} giving the formats that were set in the {{event("dragstart")}} event.</dd>
-</dl>
-
-<h3 id="Gecko_properties">Gecko properties</h3>
-
-<p>{{SeeCompatTable}}</p>
-
-<div class="note"><strong>Note:</strong> All of the properties in this section are Gecko-specific.</div>
-
-<dl>
- <dt>{{domxref("DataTransfer.mozCursor")}}</dt>
- <dd>Gives the drag cursor's state. This is primarily used to control the cursor during tab drags.</dd>
- <dt>{{domxref("DataTransfer.mozItemCount")}} {{readonlyInline}}</dt>
- <dd>Gives the number of items in the drag operation.</dd>
- <dt>{{domxref("DataTransfer.mozSourceNode")}} {{readonlyInline}}</dt>
- <dd>The {{ domxref("Node") }} over which the mouse cursor was located when the button was pressed to initiate the drag operation. This value is <code>null</code> for external drags or if the caller can't access the node.</dd>
- <dt>{{domxref("DataTransfer.mozUserCancelled")}} {{readonlyInline}}</dt>
- <dd>This property applies only to the <code>dragend</code> event, and is <code>true</code> if the user canceled the drag operation by pressing escape. It will be <code>false</code> in all other cases, including if the drag failed for any other reason, for instance due to a drop over an invalid location.</dd>
-</dl>
-
-<h2 id="Methods">Methods</h2>
-
-<h3 id="Standard_methods">Standard methods</h3>
-
-<dl>
- <dt>{{domxref("DataTransfer.clearData()")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.getData()")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.setData()")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.setDragImage()")}}</dt>
- <dd>Set the image to be used for dragging if a custom one is desired.</dd>
-</dl>
-
-<h3 id="Gecko_methods">Gecko methods</h3>
-
-<p>{{SeeCompatTable}}</p>
-
-<div class="note"><strong>Note:</strong> All of the methods in this section are Gecko-specific.</div>
-
-<dl>
- <dt>{{domxref("DataTransfer.addElement()")}}</dt>
- <dd>Sets the drag source to the given element.</dd>
- <dt>{{domxref("DataTransfer.mozClearDataAt()")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.mozGetDataAt()")}}</dt>
- <dd>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.</dd>
- <dt>{{domxref("DataTransfer.mozSetDataAt()")}}</dt>
- <dd>A data transfer may store multiple items, each at a given zero-based index. <code>mozSetDataAt()</code> may only be called with an index argument less than <code>mozItemCount</code> in which case an existing item is modified, or equal to <code>mozItemCount</code> in which case a new item is added, and the <code>mozItemCount</code> is incremented by one.</dd>
- <dt>{{domxref("DataTransfer.mozTypesAt()")}}</dt>
- <dd>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.</dd>
-</dl>
-
-<h2 id="Example">Example</h2>
-
-<p>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.</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <tbody>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'interaction.html#datatransfer','DataTransfer')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td><code>mozCursor</code>, <code>mozItemCount</code>, <code>mozSourceNode</code>, <code>mozUserCancelled</code>, <code>addElement()</code>, <code>mozClearDataAt()</code>, <code>mozGetDataAt()</code>, <code>mozSetDataAt()</code> and <code>mozTypesAt</code> are Gecko specific.</td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5.1', 'editing.html#the-datatransfer-interface','DataTransfer')}}</td>
- <td>{{Spec2('HTML5.1')}}</td>
- <td>Not included in W3C HTML5 {{Spec2('HTML5 W3C')}}</td>
- </tr>
- <tr>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari (WebKit)</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>4</td>
- <td>3.5 <sup>[2]</sup></td>
- <td>10 <sup>[1]</sup> <sup>[2]</sup></td>
- <td>12</td>
- <td>3.1 <sup>[2]</sup></td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Android Webview</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>Firefox OS</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatIE("10")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<p><code>[1]</code><a href="http://caniuse.com/#search=drag">Partial support refers to not supporting {{domxref("DataTransfer.setDragImage()")}} [CanIUse.com]</a></p>
-
-<p><code>[2]</code>Does not support {{domxref("DataTransfer.items")}} property</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/Web/Guide/HTML/Drag_and_drop">Drag and drop</a></li>
- <li><a href="/Web/Guide/HTML/Drag_operations">Drag Operations</a></li>
- <li><a href="/Web/Guide/HTML/Recommended_Drag_Types">Recommended Drag Types</a></li>
- <li><a href="/Web/Guide/HTML/Dragging_and_Dropping_Multiple_Items">Dragging and Dropping Multiple Items</a></li>
-</ul>