• User Attivo

    validazione XHTML con tradedoubler

    ciao

    ho da poco inserito degli annunci pubblicitari con tradeboubler sul mio sito, ma purtroppo mi sono accorta che così facendo ho perso la validazione XHTML

    esempio:

    a fronte di questo script:
    <script type="text/javascript">
    var uri = 'http://impit.tradedoubler.com/imp?type(js)pool(210288)a(1313029)' + new String (Math.random()).substring (2, 11);
    document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
    </script>

    ho questi errori:

    • Error Line 152 column 20: an attribute specification must start with a name or name token. document.write('<sc**'**+'ript type="text/javascript" src="'+uri+'" charset="ISO-88 An attribute name (and some attribute values) must start with one of a restricted set of characters. This error usually indicates that you have failed to add a closing quotation mark on a previous attribute value (so the attribute value looks like the start of a new attribute) or have used an attribute that is not defined (usually a typo in a common attribute name).

    • Error Line 152 column 20: element "sc" undefined. document.write('<sc**'**+'ript type="text/javascript" src="'+uri+'" charset="ISO-88 You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),

    • by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).

    • by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case.

    • Error Line 152 column 90: delimiter "'" invalid: only S separators and TAGC allowed here....c="'+uri+'" charset="ISO-8859-1"></sc**'**+'ript>');
      come posso fare ?

    Antonella


  • User Attivo

    [HTML]<script type="text/javascript">
    //<![CDATA[
    var uri = 'http://impit.tradedoubler.com/imp?type(js)pool(210288)a(1313029)' + new String (Math.random()).substring (2, 11);
    document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
    //]]>
    </script>[/HTML]


  • User Attivo

    grazie....funziona!!