These are chat archives for codefellows/sea-b15-javascript

25th
Jun 2014
Tyler Morgan
@toastynerd
Jun 25 2014 00:28
@kevinmstephens for what?
Hailey L. Petway
@hlpetway
Jun 25 2014 02:08
@ivanoats, where are the data structure solutions you've been working on it github? Is it under CF?
Chelsea Lura
@ChelseaLura
Jun 25 2014 02:10
I'd love to know as well.
Ivan Storck
@ivanoats
Jun 25 2014 04:19
@hlpetway @ChelseaLura sorry, haven’t forked it to CF yet: https://github.com/ivanoats/dsaJS
Andy Ernst
@AndyCErnst
Jun 25 2014 05:09
anyone know how I can create blocking io? I need the program to hold until the user clicks on something
Kevin Stephens
@kevinmstephens
Jun 25 2014 05:38
on the client side or server?
message me privately if you're still around and tal vez I can help
Chelsea Lura
@ChelseaLura
Jun 25 2014 05:40
Thanks @ivanoats
Kevin Stephens
@kevinmstephens
Jun 25 2014 05:47
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 25 2014 05:47
PONG
Kevin Stephens
@kevinmstephens
Jun 25 2014 05:47
cfbot image me sunset
Andy Ernst
@AndyCErnst
Jun 25 2014 05:51
Client-side. I got it going now (although if you know a good way do tell), but now I need a way to listen for which button was clicked without listening to all of them
I have a button for each letter, so 26, but the only info that comes in on the click listener is the event, which doesn't have useful data
Elliot Chong
@ElliotChong
Jun 25 2014 06:09
you should be able to access event.currentTarget to see which DOM node originated the event
if you’d like to “block” the UI you can stretch a div across the full width and height of the body and show a loader
once you have a reference to the DOM node that originated the event, you can access things like data attributes or the content to determine how to handle the button
Andy Ernst
@AndyCErnst
Jun 25 2014 06:12
All the buttons are in a form right now, the listener is on the form, when I check the event.currentTarget I just get the form element and can't tell what the user clicked (as far as I can see from the console.dir)
Elliot Chong
@ElliotChong
Jun 25 2014 06:17
try event.target (that’s the node that actually originated the event, while event.currentTarget is the node you were listening on that had the event bubble to it)
or you could attach the listener to the buttons directly $(“.button-class”).addListener(handler);
in node it’s addListener I believe
Andy Ernst
@AndyCErnst
Jun 25 2014 06:21
hmm, I'll have to take a look at this tomorrow. Thanks
Elliot Chong
@ElliotChong
Jun 25 2014 06:31
:+1:
Hailey L. Petway
@hlpetway
Jun 25 2014 13:47
@ivanoats thank you for pushing the examples. I'm prepping for my white board exam today from home. :)
Robert Talamantez
@Talamantez
Jun 25 2014 14:29
@hlpetway can you send a link to the examples?
Oh I got it:
Chelsea Lura
@ChelseaLura
Jun 25 2014 16:05
Anyone up for practicing white boarding this morning?
Hailey L. Petway
@hlpetway
Jun 25 2014 16:10
I am after my test!
So that might technically be this afternoon :)
Chelsea Lura
@ChelseaLura
Jun 25 2014 16:11
My interview is at 10.. :(
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:13
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 25 2014 16:13
PONG
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:14
cfbot image me mad pug gif
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:15
cfbot image me kitten mittens gif
Erik Nilsen
@enilsen16
Jun 25 2014 16:16
:+1:
Kevin Stephens
@kevinmstephens
Jun 25 2014 16:27
cfbot pug bomb 20
http://30.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco1_500.jpg"/><br/> <br/><img src="http://28.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco8_500.jpg"/><br/> <br/><img src="http://24.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco3_500.jpg"/><br/> <br/><img src="http://30.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco9_500.jpg"/><br/> <br/><img src="http://25.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco6_500.jpg"/><br/> <br/><img src="http://24.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco2_500.jpg"/><br/> <br/><img src="http://27.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco4_500.jpg"/><br/> <br/><img src="http://24.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco7_500.jpg"/><br/> <br/><img src="http://24.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco10_500.jpg"/><br/> <br/><img src="http://26.media.tumblr.com/tumblr_lsx4nsg5Hj1qa25vco5_500.jpg
Kevin Stephens
@kevinmstephens
Jun 25 2014 16:28
that just happened
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:30
so many pugs
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:36
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 25 2014 16:36
PONG
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:36
cfbot ship it
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:36
cfbot ship it
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:37
cfbot image me mad squirrel gif
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:37
cfbot pug bomb 20
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:37
cfbot ping
CFBot is a Hubot
@cfbot-the-hubot
Jun 25 2014 16:37
PONG
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 16:38
that skydiving pug is the best thing ever
Hailey L. Petway
@hlpetway
Jun 25 2014 16:50
YESS
Kitten Mittons
Nicholas Harberg
@harberg
Jun 25 2014 17:37
anyone interested in a coffee run?
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 17:56
cfbot pug bomb 30
cfbot ping
Elliot Chong
@ElliotChong
Jun 25 2014 18:20
Please God no more pug spam, lol
Dale Corns
@dcorns
Jun 25 2014 18:21
Amen brother!
Kevin Stephens
@kevinmstephens
Jun 25 2014 18:21
haha
shoulda never put cfbot in here
Elliot Chong
@ElliotChong
Jun 25 2014 18:27
I love a pug here and there as much as the next guy, but a pug bomb? Nothx
Hailey L. Petway
@hlpetway
Jun 25 2014 18:45
Awesome
Kevin Stephens
@kevinmstephens
Jun 25 2014 19:01
cfbot image back to baghdad
Marco Lindsay
@Marco-Lindsay
Jun 25 2014 19:02
what else would one use the bot for?
Kevin Stephens
@kevinmstephens
Jun 25 2014 19:03
making enemigos
Hailey L. Petway
@hlpetway
Jun 25 2014 19:23
Where in the world is @kevinmstephens
Kevin Stephens
@kevinmstephens
Jun 25 2014 19:25
downstairs
Easy
@toastynerd what error code should I use when a user tries to create an account and the api respods that the username is taken?
409 conflict?
Elliot Chong
@ElliotChong
Jun 25 2014 19:32
409 :+1:
Kevin Stephens
@kevinmstephens
Jun 25 2014 19:32
ALRIGHT!
Elliot Chong
@ElliotChong
Jun 25 2014 19:32
I could maybe see 403, but I think 409 is more appropriate
Kevin Stephens
@kevinmstephens
Jun 25 2014 19:33
ok