Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q189, November 23, 1999 at 09:25:20:

You are here: irt.org | About | Feedback | 615 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q189

Sent by
William Finke on November 23, 1999 at 09:25:20:

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
I had near-zero knowledge of javascript and needed this functionality. The FAQ came in handy, but I found a bug.

The statement in join():


if (escape(temp.substring(0,1) == '%0A'))

should read:


if (escape(temp.substring(0,1)) == '%0A')

The former statement tests the escape of comparing the first character with a three-character string (which will *never* be true).

The latter statement compares a three character string to the escape of the first character.

This bug was very difficult to find for a first timer. I encourage you to correct all the instances of join() in your FAQs.



©2018 Martin Webb