WTF
Archived Posts from this Category
Archived Posts from this Category
var ss = “qq”; for (ii = 0; ii < 1000; ii++) { ss += “ffff”; }
An interesting way…
1 comment Thursday 18 Oct 2007 | Andrew Dashin | Coding, WTF, JavaScript
A piece of JavaScript:
var total = total + parseFloat(eval(’document.frm.smth’ + x + ‘.value’));
…
var tmpTotal = eval(’parseFloat(document.frm.smth.value)’ + action + ‘parseFloat(price)’);
1 comment Thursday 26 Apr 2007 | Andrew Dashin | Coding, WTF, JavaScript
<SCRIPT TYPE=”text/javascript”>
var a = confirm(’#errorMessage#’);
if (a == true)
history.back(0);
else {
history.back(0);
}
<SCRIPT>
0 comments Thursday 05 Apr 2007 | Andrew Dashin | Software, Coding, Bugs, WTF, JavaScript
while (list(,$vvv) = @each($aTmp)) {
$kkkk = substr($vvv,0,strpos($vvv,‘=’));
$vvvv = substr($vvv,strpos($vvv,‘=’)+1);
$aValues[$kkkk] = $vvvv;
}
This is a part from the code I should work with. No comments.
5 comments Tuesday 14 Nov 2006 | Andrew Dashin | Coding, PHP, WTF