• Super User

    Frames e convalida W3C

    Lo so che i frames fanno schifo, e come ho già detto in altro topic sto provando a intabellare l'indice laterale del mio sito in modo che non uso i frames.

    Ma nel frattempo qualcuno può aiutarmi a capire gli errori per cui il W3C non mi convalida la pagina con i frames?

    Ho fatto questa pagina, ma ci sono 10 errori e non ne vengo a capo!!

    Errori


  • Super User

    Premetto che non ho esperienza sui frames da qualche annetto
    Prova a dare ad ogni frame un name diverso, poi vedi che dice 🙂


  • User Attivo

    @Vampiretta said:

    Ma nel frattempo qualcuno può aiutarmi a capire gli errori per cui il W3C non mi convalida la pagina con i frames?

    Io comincerei col cambiare questo:
    [html]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">[/html]con questo:
    [html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
    "http://www.w3.org/TR/REC-html40/frameset.dtd">
    [/html]Poi ... :mmm: inserirei il noframes...
    [html]<NOFRAMES>
    ... contenuto formattato...
    </NOFRAMES>
    [/html]E poi ... vediamo... 🙂


  • Super User

    Allora grazie mille dell'aiuto, ho risolto quasi tutto il problema!! :yuppi:

    Ma ho ancora qualche problemino! 😞

    Allora se scrivo così:

    [html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
    "http://www.w3.org/TR/html4/frameset.dtd">
    <html>
    <head>
    <title>Frames Auto-citazioni</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="" language="JavaScript">
    <!--
    defaultStatus = "Magia Disney"
    //-->
    </script>
    </head>

    <frameset cols="16%,*%">
    <frame src="Indice.html" scrolling="auto" noresize frameborder="0">
    <frame src="autocitazioni.htm" name="main" scrolling="auto" frameborder="0">

    <noframes>

    <body background="immagine_sfondo.gif" text="black">

    </body>

    </noframes>
    </frameset>

    </html>

    [/html]

    Mi convalida la pagina, ma mi resta il bordino accanto alla barra di scorrimento dell'indice, so che è una linea minuscola grigia, ma mi da noia.

    Come la levo???


  • Super User

    Ecco vedete anche in questa pagina l'orrendo righino grigio.

    Come lo levo potendo cmq convalidare la pagina?


  • User Attivo

    @Vampiretta said:

    Ecco vedete anche in questa pagina l'orrendo righino grigio.

    Come lo levo potendo cmq convalidare la pagina?
    Ciao Vampirella, ti premetto che non ho mai usato i frames... 😄

    Comunque: prova in questo modo:
    [html]
    <frame src="Indice.html" scrolling="auto" noresize frameborder="0" marginwidth="0" marginheight="0">
    <frame src="autocitazioni.htm" name="main" scrolling="auto" frameborder="0" marginwidth="0" marginheight="0">
    [/html]


  • Super User

    Ciao Jardem, niente non mi si leva il bordino grigio.

    Io ho visto che per toglierlo dovrei scrivere così:

    [html]<frameset cols="16%,*%" framespacing="0">[/html]

    Ma poi il W3C non mi convalida la pagina mi da errore dicendo:

    Line 15 column 37: there is no attribute "FRAMESPACING".
    <frameset cols="16%,*%" framespacing=**"**0">You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.
    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


  • User Attivo

    @Vampiretta said:

    Lo so che i frames fanno schifo, e come ho già detto in altro topic sto provando a intabellare l'indice laterale del mio sito in modo che non uso i frames.
    Ma nel frattempo qualcuno può aiutarmi a capire gli errori per cui il W3C non mi convalida la pagina con i frames?

    Come abbiamo detto più volte: "i frames fanno schifo", ma diciamo che questa parte del problema è risolto: senza framespacing si vede un bordino ma il validatore W3C ti convalida la pagina...
    @Vampiretta said:

    Ciao Jardem, niente non mi si leva il bordino grigio.
    Io ho visto che per toglierlo dovrei scrivere così:

    [html]<frameset cols="16%,*%" framespacing="0">[/html]Ma poi il W3C non mi convalida la pagina mi da errore dicendo:
    Purtroppo, vampiretta, non saprei aiutarti... framespacing non si può usare :bho:
    Sul web ho trovato un tutorial, (ma non l'ho testato) che sembra aver risolto... dai un'occhiata e quando hai tempo e voglia togli i frames, anche perchè se quest'area si chiama "Usabilità - Accessibilità - Qualità" è assurdo dedicare del tempo ad una tecnologia che è poco usabile e per niente accessibile... 😉
    Ad ogni modo questo è l'indirizzo web:
    forums.htmlcenter.com/showthread.php?t=2613

    :ciauz:


  • Super User

    Lo so quante odiate tutti i frames!!
    Per ora ho deciso che nel sito www.magiadisney.it lascerò i frames perchè non ho tempo di modificare ulteriormente e sopratutto è tantissime pagine se "disgraziatamente" decidiamo di modificare una voce dell'indice laterale le pagine da cambiare sono tantissime. 😞

    Invece per la mia home page, sto finendo di lavorare sui css, facendo si che venga fuori la stessa visione che danno i frames ma usando i css. Spero di venirne a capo poi vi faccio vedere per avere suggerimenti e consigli! 😛


  • Super User

    Ecco ho messo su la prova e il topic con le richeiste di aiuto per le pagine che con i css simulano i frames! 😛

    Topic