Skip navigation

Riassunto delle tecniche utilizzate

  • IFRAME (“Forever frame”): Loading a page in an IFRAME that incrementally receives commands wrapped in <script> tags, which the browser evaluates as they are received.
  • XMLHTTPRequest Interactive: An AJAX request is made and the browser fires events every time data is received, even if the response is not yet complete. The entire response (so far) can then be read from the responseText property.
  • XMLHTTPRequest (polling only): An AJAX request is made and the browser fires events every time data is received, even if the response is not yet complete. The entire response (so far) can then be read from the responseText property.
  • Dynamic SCRIPT loading (“CometP”, polling only): By adding a SCRIPT tag to the HEAD of the document and setting its src attribute, new script can be loaded and evaluated by the browser.

The techniques described here are those employed by Meteor’s Javascript client to achieve the best result in each browser without any of the issues documented at the top of this page, and use a combination of several of the transports listed above. Details of the browser capability tests that led to these techniques being developed are documented in the cross site scripting matrix.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger cliccano Mi Piace per questo: