EPGAH3
March 20, 2011, 2:42pm
1
I’m trying to use a Javascript applet, and when I try it, it gets corrupted to non-functionality:
javascript:%28function%28%29%7Bvar%20a%3Ddocument.createElement%28%22script%22%29%3Ba.type%3D%22text%2Fjavascript%22%3Ba.src%3D%22http%3A%2F%2Farun.keen-computing.co.uk %2FBrawler.js%3F%22%2BMath.random%28%29%3Bdocument.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28a%29%7D%29%28%29%3B
The picture attached is what it’s supposed to look like. I went through and manually corrected it–then CometBird changed it back “for” me!
/monthly_03_2011/post-62161-13006322112337.jpg" rel=“”>
When you write code, you should be generous, even lavish, with your use of whitespace. This makes it far easier for people to read and to detect issues.
I decline to even try to decipher that.
cassie
March 22, 2011, 11:15pm
3
Just because I’m curious…
Is what he posted (the code, I’m assuming) supposed to be all “one continuous (horizontal) line”?
Or is it supposed to have brackets - “( ”, “) ” - as in the screenshot?
Doesn’t most coding get written vertically? For example (excuse the ‘gibberish’)…
%28function%28%29%7Bvar%20a%3Ddocument.
createElement%28%22script%22%29%3Ba.
type%3D%22text%2Fjavascript%22%3Ba.
Like I said, I’m just wondering…:unsure: