Eliminating disallowed XML chars
#x 0 - #x 8 | INVALID
#x 9 - #x a | OK
#x B - #x C | INVALID
#x D | OK
#x E - #x 1F | INVALID
#x 20 - #x D7FF | OK
#x D800 - #x DFFF | INVALID
#x E000 - #x FFFD | OK
#x FFFE - #x FFFF | INVALID
#x10000 - #x10ffff | OK
s = s.replace(/([\u0000-\u0008]|[\u000B-\u000C]|[\u000E-\u001F]|[\uD800-\uDfff]|[\ufffe-\uffff])/g,'');
- this is a great reference of all the events and such
Multi-dim arrays initialization
For some reason, don't do this
a = {}; to initialize an array. When I do,
i.length is undefined. Instead do
a = Array();
Here's code to simulate a multidimensional array...parallel elements:
a[i] = ["column1", "column2"]
--
MattWalsh - 02 Sep 2006