Re: Javascript newbie - Please Help



-Lost wrote:
If you do not know why you are using:

1. type="text/javascript"
2. // <![CDATA[
3. // ]]>

...then it is a good indication you should not be using them.

That statement, in it's generality, is wrong. For example, if the OP would
not know what the script-commented CDATA declaration would mean but would
use XHTML anyway out of the same lack of knowledge, then not using them
could easily render their markup invalid. The same goes for
`type="text/javascript"'. While HTML UAs might be more forgiving, the
markup would still not be valid which might have more serious consequences
in a UA with a more strict parser.

I'll not bother debating or arguing why it is or is not good -- I'm
sure someone else will though.

IOW, you are just babbling about something you don't (care to) understand
either.


PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
.