Warning: '<' + '/' + letter not allowed here

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Warning: '<' + '/' + letter not allowed here

ClaireRafferty

Hi there,

I'm loosing my mind here!!!!!!  I'm using HTML tidy.

I have a scroll bar on my homepage that uses some javascript.  Here is the block of code -

                <script type='text/javascript'>var messages=new Array();</script><div style='border:none;border-bottom:1px solid #9f9f9f;padding:0px;padding-bottom:7px;margin:none;margin-bottom:7px'><script type='text/javascript' src='/Store.nsf/scroller.js'></script></div>


The code behind the computed text which is causing these problems is as follows -

SF := @Explode(lookup[11];";");
x := 0;
@For(n := 1;
        n <= @Elements(SF);
        n := n + 1;
        HTML := HTML + "messages["+@Text(x)+"]=\"";
        HTML := HTML + @DbLookup("":"NoCache";"":"menus.nsf";"FeaturesLookup";SF[n];2;[FailSilent]) + "<br />";
        n := n + 1;
        HTML := HTML + @DbLookup("":"NoCache";"":"menus.nsf";"FeaturesLookup";SF[n];2;[FailSilent]);
        HTML := HTML + "\""+@Char(13) ;
        x := x + 1
);
HTML


How can I stop getting the Warning: '<' + '/' + letter not allowed here error?????







Regards
Clare Rafferty
Web Team
Ext. 4478
Reply | Threaded
Open this post in threaded view
|

Re: Warning: '<' + '/' + letter not allowed here

Bjoern Hoehrmann

* [hidden email] wrote:
>I have a scroll bar on my homepage that uses some javascript.  Here is the
>block of code -
>
>                <script type='text/javascript'>var messages=new Array();
></script><div style='border:none;border-bottom:1px solid
>#9f9f9f;padding:0px;padding-bottom:7px;margin:none;margin-bottom:7px'><script
>type='text/javascript' src='/Store.nsf/scroller.js'></script></div>

>How can I stop getting the Warning: '<' + '/' + letter not allowed here
>error?????

You get this if you have code like

  <script ...>document.write("</foo>")</script>

you don't get it for the code above. Why would you want to stop getting
it? Code as above is not allowed and Tidy should fix it for you.
--
Bj?rn H?hrmann ? mailto:[hidden email] ? http://bjoern.hoehrmann.de
Weinh. Str. 22 ? Telefon: +49(0)621/4309674 ? http://www.bjoernsworld.de
68309 Mannheim ? PGP Pub. KeyID: 0xA4357E78 ? http://www.websitedev.de/