Posts by Pedro • 29 points
4 posts
-
1
votes2
answers790
viewsQ: How can I use a handlebar variable inside a script
So I’m creating a nodejs project. I’m using handlebars as my template engine and sequelize as ORM. In my route file, I create a route and send the object "status" to my form page. (in this case, the…
-
0
votes1
answer503
viewsQ: How to delete a record with a foreign key using sequelize
I created a web application using sequelize, my model looked like this: const Product = db.sequelize.define('product', { idProduct: { type: db.Sequelize.STRING, primaryKey: true, autoIncrement:…
-
1
votes1
answer108
viewsQ: How do I save a sequelize value to a variable in Node.js?
I use the following code var app = website.findOne({ where: { idwebsite: req.params.id } }) res.send(app); But the result on the screen is that {"isFulfilled":false,"isRejected":false} How do I save…
-
-1
votes2
answers164
viewsQ: How to get the form data without using Submit?
So I have a question here. I needed to take the data related to a form and send to my Ajax automatically (in a structured way), without pressing any Ubmit button or using an onClick function. I…