Welcome to WebmasterWorld Guest from 54.234.38.8

Forum Moderators: brett tabke

Message Too Old, No Replies

BBcode validator goofing up pretty badly with JavaScript.

     
10:14 pm on May 31, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts: 3145
votes: 12


When there are multiple items in an array you have to use solid brackets to refer to the object...

object [ i ]


I had to insert spaces in to that however that's completely unacceptable to have spaces like that in the code as it's a waste of bandwidth for people who understand good practices.

I can't reply to two open posts right now because I'm just hitting this error endlessly.

Also disabling both the BBcode and the smileys is not allowing me to get around this issue.

On a scale of 1-10 this is pretty much a 10 for me in terms of being undesirable. Everything else at the site is just peachy keen for me.

- John
2:56 pm on June 1, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member fotiman is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 17, 2005
posts:4966
votes: 10


I think if you wrap it in [code][/code] tags, then you won't run into that problem. For example:


var i = 1;
var arr = [i];


Note, I typically post code inside of [quote][pre][code][/code][/pre][/quote] tags. So:


var i = 1;
var arr = [i];
9:23 pm on June 1, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts: 3145
votes: 12


Please see my other thread here...
[webmasterworld.com...]

- John