JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Mar 26, 2015 00:25
echo json_encode(array('success'=>true));
Mar 26, 2015 00:24
echo '{"success":true}';
Mar 26, 2015 00:24
I forget, Strict JSON requires quoted object keys
Mar 26, 2015 00:10
echo '{success:true}';
Mar 25, 2015 23:57
in you initial code you are just registering a success callback, it won't be called upon failure
Mar 25, 2015 23:56
response is just data, not the XHR/event
Mar 25, 2015 23:49
you're registering the cb as a success callback
Mar 25, 2015 23:48
you shouldn't need to check success in the callback
Dec 31, 2014 23:57
What's up Javscript?
Nov 18, 2013 02:35
that is the reason
Nov 18, 2013 02:35
it's fewer characters.
Nov 18, 2013 02:12
@copy that's not true. document.bar.foo? won't return undefined, it'll throw an error
Nov 18, 2013 02:00
there is no ternary operator
Nov 17, 2013 05:48
@phenomnomnominal Well, there is always jquery.com
Nov 17, 2013 05:46
@phenomnomnominal zeptojs.com
Nov 3, 2013 20:14
@skripted yes
Nov 1, 2013 21:19
lol
Oct 30, 2013 00:45
I appreciate the artwork you have created here
Oct 30, 2013 00:45
Thanks for your patience @rlemon
Oct 30, 2013 00:45
^_^
Oct 30, 2013 00:41
mumbles surface area velocity squared
Oct 30, 2013 00:41
in your world larger things go down, in mine larger things stay up
Oct 30, 2013 00:40
and the +/-
Oct 30, 2013 00:34
tips hat
Oct 30, 2013 00:34
now I'll take my physics and my pendantic self and leave
Oct 30, 2013 00:32
jsfiddle.net/whitehat101/Nwp66/14 - crosshair + physics-like air resistance
Oct 30, 2013 00:27
Need more bats and spiders
Oct 30, 2013 00:27
Also, all the Easter colors? It's Halloween, dontcha know.
Oct 30, 2013 00:25
I "feel" like some of the elliptical confetti are "too big"
Oct 30, 2013 00:23
cont[i].vy += .1 - (cont[i].s/1100)
Oct 30, 2013 00:23
Actually... I just changed the gravity line to use a - instead of a plus, and I like the effect
Oct 30, 2013 00:20
I know, I know. It's cool!
Oct 30, 2013 00:19
but gravity does not care about size/mass
Oct 30, 2013 00:19
you could call it "air resistance" kinda
Oct 30, 2013 00:18
Physics would disagree with that... but this isn't real life
Oct 30, 2013 00:15
I like your comment on 165. I was thinking about turning off gravity, as well
Oct 30, 2013 00:05
@rlemon yesterday you were asking about the performance of apply for the matrix transforms, vs parameters, did you find an answer?
Oct 30, 2013 00:02
It's like sparklers on 4th of July, anytime I want!
Oct 30, 2013 00:01
SEXY!
Oct 30, 2013 00:00
but, it can be 20% cooler if mousemove....
Oct 29, 2013 23:59
I mean, THAT'S MEGA COOL @rlemon
Oct 29, 2013 23:59
^_^
Oct 29, 2013 23:59
No mousemove event?
Oct 29, 2013 23:54
If it is your project, do whatever the hell you want, just be consistent.
Oct 29, 2013 23:54
@monners on spaces vs tabs: It depends on the language, most have a convention that +90% of existing projects use. C/Java/PHP tabs; Ruby/Python/JavaScript spaces. However always continue the convention of the project, even if you disagree with it.
Oct 29, 2013 04:17
It's clearly a kitten
Oct 29, 2013 04:09
!!/welcome antindexer
Oct 28, 2013 12:27
there is nothing magic here -- you're just manipulating JavaScript objects
Oct 28, 2013 12:22
the data seems so useless, and your problems aren't related to angular, but just javascript
Oct 28, 2013 12:21
@vzhen why are you doing this?