sito drupal con sito embedded

2 contenuti / 0 new
Ultimo contenuto
sito drupal con sito embedded

Buongiorno, avrei esigenza di incorporare un sito creato da una stazione meteo nel mio sito drupal. Ho provato a farlo con iframe ma sembra che sia una soluzione non gradita all'html 5.
il sito in questione è visibile a questo indirizzo http://www.meteopaupisi.it/aa
il sito viene creato da vwiev, un demone che provvede ad aggiornarlo ogni 5 minuti, vorrei incorporarlo per non perdere il layout del sito principale.
Ho provato a mettere iframe sia sulla pagina che come blocco ma la soluzione non mi sembra delle migliori. Come posso fare?
Grazie per l'attenzione.

Drupal Version:

Ciao, in un blocco - con PHP filter abilitato - puoi mettere questo:

var xmlDocRefRef = null ;
      function getData() {
        if (typeof window.ActiveXObject != 'undefined' ) {
          xmlDocRef = new ActiveXObject("Microsoft.XMLHTTP");
          xmlDocRef.onreadystatechange = processData ;
        }
        else {
          xmlDocRef = new XMLHttpRequest();
          xmlDocRef.onload = processData ;
        }
        xmlDocRef.open( "GET", "http://www.meteopaupisi.it/aa", true );
        xmlDocRef.send( null );
      }
      function processData() {
        if ( xmlDocRef.readyState != 4 ) return ;
        document.getElementById("outputdata").value = xmlDocRef.responseText ;
      }
      function emptyData() {
        document.getElementById("outputdata").value = 'Data cleaned, Press GetData to fetch data' ;
      }
getData();

Dovrebbe essere ok