Z góry przepraszam, jeśli nie w tym dziale, ale w sumie nie wiedziałem za bardzo pod co podpiąć mój problem.
Kończę własnie nową wersję stronki. Pojawił się problem z walidacją, gdy dołączylem reklamy TradeDoubler.
Przykładowy kod wygląda tak:
Kod
<script type="text/javascript">
var uri = 'http://imppl.tradedoubler.com/imp?type(js)pool(320444)a(1599010)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
var uri = 'http://imppl.tradedoubler.com/imp?type(js)pool(320444)a(1599010)' + new String (Math.random()).substring (2, 11);
document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
Testowałem na walidatorze w FF oraz na http://validator.w3.org - zawsze ten sam błąd:
Cytat
Line 80, Column 90: delimiter "'" invalid: only S separators and TAGC allowed here
…'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
…'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
oraz
Cytat
Line 80, Column 90: end tag for element "SC" which is not open
…'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
…'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
Kod pobierany est losowo z bazy, ale nie o to chodzi. Próbowałem zmienić przykładowy, pierwszy z brzegu kod (konkretny rekord w tabeli), "pozbywając" się '+', czyli:
Kod
<script type="text/javascript">
var uri = 'http://imppl.tradedoubler.com/imp?type(js)pool(320444)a(1599010)' + new String (Math.random()).substring (2, 11);
document.write('<script type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></script>');
var uri = 'http://imppl.tradedoubler.com/imp?type(js)pool(320444)a(1599010)' + new String (Math.random()).substring (2, 11);
document.write('<script type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></script>');
Niestety, ale w tym momencie zamiast bannerka pojawia się ');
Czyli coś nie tego z kodem...
Wszystkie kody są wprost skopiowane z Tradedoubler.
Kombinowałem też, by powyższe wrzucić do iframe, ale też nic z tego...
Czy ktoś może spotkał się z takim problemem? Jeśli tak, bądź jeśli ktoś z Was zna rozwiązanie tego problemu - dajcie znać, plis...
Pozdrawiam!
PS.
Sorki za przydługie cytowanie, ale chciałem dokładnie opisać problem.