Visualizzazione dei risultati da 1 a 8 su 8

Discussione: ERRORE DI VALIDAZIONE

  1. #1
    Utente di HTML.it L'avatar di erin
    Registrato dal
    Sep 2000
    Messaggi
    398

    ERRORE DI VALIDAZIONE

    Ho fatto validare una pagina di un sito dal W3.org e mi da frequentemente questo errore che non riesco da interpretare
    Ringrazio anticipatamente chi mi aiuta

    Error Line 84 column 30: there is no attribute "HREF".
    [b]<A HREF="dettaglio_news.asp?id=13">IL TESTO DELL'ALT E' ...

    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.

  2. #2
    Ci daresti cortesemente il link al documento incriminato?

  3. #3
    Utente di HTML.it L'avatar di erin
    Registrato dal
    Sep 2000
    Messaggi
    398
    certamente, www.vallegrana.it

  4. #4
    Una delle regole base di XHTML è che tutti i tag e tutti gli attributi vanno scritti in minuscolo. Correggi e ritenta.

  5. #5
    Utente di HTML.it L'avatar di erin
    Registrato dal
    Sep 2000
    Messaggi
    398
    Mitico per ora grazie

  6. #6
    Utente di HTML.it L'avatar di erin
    Registrato dal
    Sep 2000
    Messaggi
    398
    Funziona tutto, un ultimo problema , mi da errore dove c'è un apostrofo.
    per metttere le descrizoni io uso il seguente script
    <%=limitaCaratteri(" ("& Replace(Rs_news.Fields.Item("des_news").Value,"'", "''") &") ", 250)%>
    Ho provato a sostituire l'apostrofo con altro ma non sembra funzionare, cosa posso fare?
    GRAZIE ANTICIPATAMENTE PER L'AIUTO

  7. #7
    Azz, io ASP non lo conosco. Tuttavia proverei due soluzioni:
    1. prova a mettere uno slash inverso ("\") davanti al carattere che ti dà problemi;
    2. prova a stampare l'apostrofo tramite entità, ovvero &amp;#39;.

    Facci sapere.

  8. #8
    Utente di HTML.it L'avatar di erin
    Registrato dal
    Sep 2000
    Messaggi
    398
    Trovata la soluzione, il problema è che la news veniva carticata con un caratttere strano ’ al posto dell'apostrofo ' e quindi sostituendolo tutto funzia
    <%=limitaCaratteri(" "& Replace(Rs_eventi.Fields.Item("des_evento").Value, "’", "'") &" ", 250)%>

    Grazie ancora per il tuo prezioso aiuto

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.