Hey guys, I'm pretty new to posting on SO and have a question. I answered a bounty question that is the correct answer, but the asker hasn't been during the weekend and the grace period ends during the night. Is there any way to get that bounty when he looks at SO tomorrow?
@JohnHarding Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
Well, anyways... Hi! I'm a C++ programmer who was wondering if there were any great and easy-to-use Node.js frameworks to create web apps for maybe the middle school or high school level. I'm completely out of my zone so I wanted your guys' opinions. Any thoughts?
@AwalGarg I accidentally clicked my JS badge, then was like…"hmm, I wonder how many people have gotten this badge…" Then I saw your name on the recents list.
@royhowie , i don't see how ur comment is constructive in anyway , and Jaideep , remember that on SO , alot of people prefer to see code , Just to emphasis the point . — Alexander Solonik4 mins ago
@royhowie , IMHO , u tend to be very very sarcastic and contribute very little to actually answering the question (which is ACTUALLY what your suppose to do on SO , incase u did't know ) , i don't know what toung-in-cheek means , but u surely display very little control of it . on a serious note , if you have nothing constructive to contribute , just don't contribute at all , you could have always said "hey Jaideep , we would appreciate seeing a little more code" ... That statement does the Job . sarcasm only aggravates the situation . BE HUMBLE ! — Alexander Solonik31 secs ago
* Module that allows for arrangement and presentation of arbitrary items, such as images, text, links, and allows for dynamic behavior (i.e. buttons pressing, signals, the usual I/O stuff we might see in web pages) * Perhaps another module to make server-client communication easy? I'm hoping to end with maybe a chat client but that's much too ambitious I think. Easy networking would be a plus * Very light. Doesn't have to be too powerful, I'm just looking for a nice API that is quick and easy to learn. Think Ruby on Rails vs. Java enterprise web backends.
This is what I am trying to do,
// declare an array with 16 items, each with intial value = 0
var countMe = [
["00", 0],
["01", 0],
["02", 0],
["03", 0],
["10", 0],
["11", 0],
["12", 0],
["13", 0],
["20", 0],
["21", 0],
["22", 0],
["23", 0],
["...
Then you can access any tile using its coordinates on the grid, and access/change any information you want about it, even adding new information is trivial (because objects are not rigid)
@MadaraUchiha autovivification in Perl = when you access an undefined array inside an array, it magically creates a new empty one so you don't have to.
I would first redirect successful logins to your addemail function inside your twitter route:
app.get('/auth/twitter', passport.authenticate('twitter'));
app.get('/auth/twitter/callback',
passport.authenticate('twitter', { successRedirect: '/addemail',
...
actually, it shouldn't matter. Since if they get redirected to login, they will be brought back to the page before that, which must be a page on my website
but I'm tired and my concern is actually impossible (there is no way for the average "dumb" user to be redirected off the site, unless they're doing something fishy)
What I am trying to do
I am currently writing a little chat bot for Web-Whatsapp. I decided to use a chrome extension because of the easy js-injection. There is a voice-message button which switches to a button for sending text as you start typing something. React deletes the voice-message eleme...
Im pretty limited, cant really interact with the react because of the chrome extensions. The injection via chrome extension does not allow access to objects from the site you inject. But i gonna take a look at phantonJS, thanks
I developed this grid which displays number of records for X & Y, user can click each number to see a list (I didn't added list's markup to fiddle yet - so lets not worried about it atm)
What I believe is that I over complicated this simple project by choosing SVG, and it can be improved massive...
@THE I'm not actually angry at you, don't worry. I'm just pointing out there are major conceptual gaps in your modeling. You should learn about arrays and how they work to represent data, and you should at least understand the DOM API.
@BenFortune the "better design" would be to access /users/1 with a DELETE HTTP verb.
@mstorm I can talk to the WhatsApp people if you're stuck for much longer, they use bluebird and Petka knows them pretty well - but I'm not sure they'd like the fact people are writing bots :) Wouldn't it be simpler to hook on the messages and how they're sent instead of the DOM?
@THE your code is pretty terrible. Please don't take it as a personal offense. (Not you or your ability, just your code). You really need to go through an arrays tutorial and learn about separation of concerns, you're constantly querying your presentation layer for data.
Maybe, but why do you have 100 forms/actions there on the same page? Split it to different pages logically, you can also put that sort of stuff in a function that takes the table name/connection name an handle it from there
$.get('DATA.PHP').then(function(data){ $('.world').replaceWith( data ); });
the function inside the then method will be called when the request to DATA.PHP completes, it's an asynchronous request, read up about ajax and how promises work
@hamism Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
i have a base backbone view and another view which extends from that base view but when i try to trigger events like click i can't do it unless i go to chrome console and do it there