diff options
Diffstat (limited to 'files/it/web/api/xmlhttprequest/open/index.html')
-rw-r--r-- | files/it/web/api/xmlhttprequest/open/index.html | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/files/it/web/api/xmlhttprequest/open/index.html b/files/it/web/api/xmlhttprequest/open/index.html deleted file mode 100644 index b4786aecc6..0000000000 --- a/files/it/web/api/xmlhttprequest/open/index.html +++ /dev/null @@ -1,115 +0,0 @@ ---- -title: XMLHttpRequest.open() -slug: Web/API/XMLHttpRequest/open -translation_of: Web/API/XMLHttpRequest/open ---- -<p>{{APIRef('XMLHttpRequest')}}</p> - -<p>Il metodo <strong>XMLHttpRequest.open()</strong> inizializza una richiesta. Questo metodo è utilizzato da codice JavaScript; invece, per inizializzare una richiesta da codice nativo, usare <a class="internal" href="/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIXMLHttpRequest#openRequest()"><code>openRequest()</code></a>.</p> - -<div class="note"><strong>Nota:</strong> Chiamare questo metodo da una richiesta già attiva (una in cui <code>open()</code> o <code>openRequest()</code> è stata già chiamata) è equivalente a chiamare <code>abort()</code>.</div> - -<h2 id="Sintassi">Sintassi</h2> - -<pre class="syntaxbox">XMLHttpRequest.open(<var>metodo</var>,<var> url</var>) -XMLHttpRequest.open(<var>metodo</var>,<var> url</var>,<var> async)</var> -XMLHttpRequest.open(<var>metodo</var>,<var> url</var>,<var> async</var>,<var> utente</var>) -XMLHttpRequest.open(<var>metodo</var>,<var> url</var>,<var> async</var>,<var> utente</var>,<var> password</var>) -</pre> - -<h3 id="Parameters">Parameters</h3> - -<dl> - <dt><code>metodo</code></dt> - <dd>Il metodo HTTP da utilizzare, come "GET", "POST", "PUT", "DELETE", ecc. Campo ignorato per URL non-HTTP(S).</dd> - <dt><code>url</code></dt> - <dd>{{domxref("DOMString")}} che rappresenta l'URL a cui inviare la richiesta.</dd> - <dt><code>async</code> {{optional_inline}}</dt> - <dd>Un parametro opzionale Booleano, <code>true</code> in maniera predefinita, indicante se effettuare o meno l'operazione in modalità asincrona. Se questo valore è <code>false</code>, il metodo <code>send()</code> non ritornerà finchè la risposta non sarà ricevuta. Se <code>true</code>, la notifica di una transazione completata è fornita utilizzando gli event listener. Questo <em>must</em> essere true se l'attributo <code>multipart</code> è <code>true</code>, o partirà un eccezione. - <div class="note"><strong>Nota:</strong> Da Gecko 30.0 {{geckoRelease("30.0")}}, le richieste sincrone sul thread principale sono state deprecate a causa di effetti negativi sull'esperienza utente.</div> - </dd> - <dt><code>utente</code> {{optional_inline}}</dt> - <dd>Il valore opzionale del nome dell'utente da utilizzare per scopi di autenticazione; il valore predefinito è <code>null</code>.</dd> - <dt><code>password</code> {{optional_inline}}</dt> - <dd>La password opzionale da utilizzare per scopi di autenticaziones; il valore predefinito è <code>null</code>.</dd> -</dl> - -<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('XMLHttpRequest', '#the-open()-method', 'open()')}}</td> - <td>{{Spec2('XMLHttpRequest')}}</td> - <td>WHATWG living standard</td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilità_fra_browser">Compatibilità fra browser</h2> - -<div>{{CompatibilityTable}}</div> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Funzionalità</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatChrome(1)}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatVersionUnknown}}</td> - <td>{{CompatIe('5')}}<sup>[1]</sup><br> - {{CompatIe('7')}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatSafari('1.2')}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Funzionalità</th> - <th>Android</th> - <th>Chrome for Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Supporto di base</td> - <td>{{ CompatVersionUnknown}}</td> - <td>1.0</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatVersionUnknown}}</td> - <td>{{ CompatVersionUnknown}}</td> - <td>{{ CompatVersionUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Questa funzionalità è stata implementata attraverso ActiveXObject(). Internet Explorer implementa lo standard XMLHttpRequest dalla versione 7.</p> - -<h2 id="Vedi_anche">Vedi anche</h2> - -<p><a href="/en-US/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest">Utilizzare XMLHttpRequest</a></p> |