Justin Harwood

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
Jun 12, 2017 18:56
Hello, world
Mar 11, 2017 03:07
is anyone here good with react? quick question
Oct 26, 2016 19:15
hello world
Oct 20, 2016 17:58
like i put a Date.now above the render, then passed it in, and it was only refreshing every once in a while. i put a Date.now() directly in the router render and it updated every refresh.
Oct 20, 2016 17:57
i'm passing in a result set from a query placed above the router render part
Oct 20, 2016 17:56
i think my issue is that i'm not calling a function to render a "select" on every refresh.
Oct 20, 2016 17:55
when i put an action**
Oct 20, 2016 17:55
i tried putting it at the top of my route initially but that didn't work
Oct 20, 2016 17:55
when i sat an action on a form, why does it go looking for a .post in app.js?
Oct 20, 2016 17:54
MVC?
Oct 20, 2016 17:53
and the "insert" in app.js
Oct 20, 2016 17:53
i have my "select" in the the route
Oct 20, 2016 17:52
where should i be putting my database logic in an express app?
Oct 20, 2016 17:19
lol i had an internship a year and a half ago where i exclusively wrote stored procs in sql server
Oct 20, 2016 17:13
<3 sql
Oct 20, 2016 17:13
i'm used to LAMP stack
Oct 20, 2016 17:12
ok ssube. ill console.log some variables
Oct 20, 2016 17:11
i wonder if it has to do with my router? refreshing "/mysql_test" doesn't seem to initiate a fresh select
Oct 20, 2016 17:10
neat! thanks
Oct 20, 2016 17:09
what do you mean @ssube? by not using DB driver directly
Oct 20, 2016 17:06
should i include my mysql_test router?
Oct 20, 2016 17:06
i got rid of result in the .query callback. still the same outcome. no instant update.
Oct 20, 2016 17:05
i wouldnt ship this in any capacity
Oct 20, 2016 17:05
yeah, i'm just trying to get the basics of mysql/js down
Oct 20, 2016 17:01
i want new inserts to be displayed instantly upon reload
Oct 20, 2016 17:01
it's confusing that refresh doesn't trigger a fresh query
Oct 20, 2016 16:58
any ideas?
Oct 20, 2016 16:58
just submitted this question: stackoverflow.com/questions/40160234/…
Oct 20, 2016 16:57
anyone good with node/express?
 

HTML / CSS / WebDesign

This room is now defunct. RIP.
Oct 28, 2016 15:54
anyone here good at css?