But get this error 5 times: character “<” is the first character of a delimiter but occurred as data
But I need the “<” in place in some javascript on the page:
function prev_my_photo() {
MyPhotoThingVar--;
if (MyPhotoThingVar <= 0) {
MyPhotoThingVar = 0
}
return MyPhotoThingVar;
}
I need to have the javascript on the same page, and not as an include, because the ASP code includes the values it is checking against, so I can’t include the javascript, otherwise it won’t work.
Is this something I’ll have to live with? I can’t replace the “<” with an “<” because then the javascript breaks.
Not if you serve your XHTML markup as XHTML. If you’re using pretend-XHTML you really should keep all JavaScript in external files, since the content type of the script element differs between HTML4 and XHTML1.