Skip to main content

All Questions

Tagged with
0 votes
1 answer
39 views

Code not executing after second request to server

I make two requests to the server using $.post. After executing the first request, i call the second request, passing the information received from the first. The problem is that after the second ...
Madara's user avatar
  • 3
1 vote
2 answers
2k views

ERROR: Encoding not recognized: 'undefined' when trying to Sequelize Mysql

I'm trying to install and run Blocktogether on my Ubuntu server. When I run ./node_modules/.bin/sequelize --config=config/sequelize.json db:migrate --env=production I get this error: Sequelize CLI [...
Avand Fardi's user avatar
0 votes
1 answer
156 views

Mysql syntax to update a column field using user id

I need to develop an e-commerce website using node js and MySQL for my college course. In the checkout process, I am asked to allow the user to enter a delivery address and update the user table's ...
Mara Marras's user avatar
0 votes
1 answer
343 views

nodejs mysql query data to loop array

I'm using nodejs and mysql to retrieve data from database. I need to get the result like below: var dictionary, set_lang; dictionary = { "english": { "...
HiDayurie Dave's user avatar
1 vote
1 answer
1k views

How to create a local server connection for a NW.JS local desktop application?

I'm new to Node.JS and NW.JS and this is my first project, a Desktop App Demo. I made a basic form and I'm trying to execute a local app so I want turn my web server into a local serever connection to ...
Ricardo Sosa's user avatar
0 votes
0 answers
576 views

Pass data using "data-id" in an anchor tag to a form using jQuery (or some other way)?

I am using node.js with MySQL, handlebars, jwt, and express. The project contains the entities of review, place, and user. I am setting something up kind of like a TripAdvisor site. The goal is to ...
Paul W's user avatar
  • 65
0 votes
1 answer
638 views

Connecting To Multiple MySQL Databases in Node.js

I am trying to have some type of dropdown that shows a list of all the databases from the specified host. Basically, my goal is for user to be able to select one of the databases from the dropdown and ...
Nikko Lee's user avatar
0 votes
0 answers
91 views

how do i send a variable( from ajax call to mysql using node.js, so that query can be done using that variable and data send back to ejs file

How do I send a variable from ajax call to mysql using node.js, so that query can be done using that variable and data send back to client /* javascript code in .ejs file*/ <script type="text/...
mohit kumar's user avatar
2 votes
0 answers
46 views

I am unable to get list of values in the dropdown for input textbox for autocomplete functionality using jquery, node,js and mysql database

following are the code that i have used: Html code: <input type="text" id="empName"> jQuery: $(function() { $('#empName').autocomplete({ source: function(req, res) { $.ajax({ ...
mohit kumar's user avatar
0 votes
0 answers
62 views

I would like to select the value and return on the same page from database using jquery

This is the node API coding for post method which will return the data from mysql database // these my post method app.post('/home/product',function (req,res) { var data = { name:req.body....
Rambabu verma's user avatar
0 votes
1 answer
518 views

node.js + mysql + ejs update screen information without reloading page after data insert

i'm trying to update my list of tasks after inserting, currently when i press the button, in my ejs page i submit a post request, than in my controller i have app.post("/mypage") and here i use ...
tangir miah's user avatar
0 votes
1 answer
64 views

Other ways to connect and display mysql with node.js through html

Hey I'm trying to learn how to use node.js with mysql. I'm at the point where I can display data from mysql in the browser. I was wondering if there is another way (smarter way) to do this than what I'...
FakeRune's user avatar
1 vote
1 answer
25 views

I am doing a Ajax post request to the server all the data is fine but my first_name and last_name are being updated as "undefined"

I am doing a Ajax post request to the server all the data is fine but my first_name and last_name are being updated as "undefined" Please help thanks in advance --- server code --- i am inserting ...
Noob_developer's user avatar
1 vote
0 answers
491 views

How to view images/photo stored as a blob in mysql using node.js?

I have saved images as blobs directly to a mysql database with other data column fields. Using Node.js, I can view all the data using an ajax request, however I am not able to view the images as ...
flowover's user avatar
0 votes
3 answers
139 views

JQuery - Appended Table keeps multiplying itself or duplicating itself when a toggle button is clicked

I wish to have the user click a button to retrieve a table which has data from a mysql database once a button is clicked using an Ajax call using JQuery. The table is appended to a table element which ...
flowover's user avatar

15 30 50 per page
1
2 3 4 5 6