Visualizzazione dei risultati da 1 a 4 su 4
  1. #1
    Utente di HTML.it L'avatar di Igreo
    Registrato dal
    Jun 2004
    Messaggi
    1,114

    Mal visualizzazione iframe con IE; con Firefox tutto ok

    Ho il seguente problema:

    www.dgrf.altervista.org/it/

    Se aprite la pagina con IE, la visualizzazione soprattutto degl'iframe, ma anche alcuni table annidati... vengono completamente ristretti o addirittura cancellati... mentre, con Firefox o Netscape, questo non avviene...

    ...Potete dargli una vista e magari passarmi qualche suggerimento? GRAZIE!! A presto.

    PS. Ora non so se in questa pagina ci sono molti errori è un fac simile di quello che sto facendo, perciò la domanda è come mai visualizzo nettemente peggio con IE? Eppure sono soltanto tag html! ...Relativamente alla pagina che sto facendo, i due iframe li schiaccia a height=0, mentre con firefox mantengono il 100% come settato! Forse il problema che genera IE è rispetto alla percentuale?

  2. #2
    Utente di HTML.it L'avatar di Igreo
    Registrato dal
    Jun 2004
    Messaggi
    1,114
    Nessuno che può aiutarmi?

    Ho letto questo articolo.. in cui dice di provare a inserire l'iframe o il src.. soltanto dopo il caricamento della pagina! Voi cosa ne dite?

    Grazie!!

    Codice PHP:
     Post a stripped down version of the page if you canOne that shows exactly how the iframe fits into the structure of the page.

    The solution I settled on works like this:
    The parent page has a javascript function like this:

    function 
    insertIt() {
    var 
    _y document.getElementById('framediv');
    var 
    _x window.frames[0].document.body.innerHTML;
    _y.innerHTML _x
    }
    Thenthe parent page has a div with the id "framediv" which is placed where the contents of the iframe should appear on the page.
    The iframe element is then placed inside the divlike this:

    <
    div id="framediv">
    <
    iframe onload="insertIt();" src="/somewhere/content.htm" frameborder="no" width="555px" scrolling="no">
    </
    div>

    As 
    you can seethere's onload="insertIt()" inside the iframe element. So when the iframe loads, the parent page immediately takes the contents of the body of the document contained in the iframe and actually replaces the iframe element with that content.

    It'
    s a little tricky to comprehendbut it works great.

    You said you're a newbie, does this make any sense to you?

    also, is the iframe document located on the same server and the same domain as the parent page?
    That will play a part. 

  3. #3
    Utente di HTML.it L'avatar di Igreo
    Registrato dal
    Jun 2004
    Messaggi
    1,114
    In pratica il probblema è quello di alcune tabelle.. e ho scoperto che il valore in percentuale, non viene calcolato bene da ie o netscape.. perciò, ho pensato che sono in bel guaio.. anche perchè ho provato diversi codici, ma il metodo non ha funzionato:

    Codice PHP:
    window.onload = function() {
        var 
    cella1document.getElementById("cella1");
        var 
    cella2document.getElementById("cella2");
        var 
    lun1_hcella1.offsetHeight;
        var 
    lun1_wcella1.offsetWidth;
        var 
    lun2_hcella2.offsetHeight;
        var 
    lun2_wcella2.offsetWidth;
        var 
    f_lun1_hlun1_h 5;
        var 
    f_lun1_wlun1_w 10;
        var 
    f_lun2_hlun2_h 5;
        var 
    f_lun2_wlun2_h 10;
    alert("...Esattamente " f_lun1_h 'px');
        if (
    document.getElementById('cella2')) frames['frame_princ'].heightf_lun2_h;
        if (
    document.getElementById('cella2')) frames['frame_princ'].widthf_lun2_w;
        if (
    document.getElementById('cella1')) frames['menu'].heightf_lun1_h;
        if (
    document.getElementById('cella1')) frames['menu'].widthf_lun1_w;

    in questione come detto sono alcuni iframe (come in questo caso) e dei table!

    Cosa posso fare?

    Grazie ancora, ciao!

  4. #4
    Utente di HTML.it L'avatar di Igreo
    Registrato dal
    Jun 2004
    Messaggi
    1,114
    UP!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.