Questions tagged as 'node.js'

0
answers

How to access DOM element from within the clientsDAO.js model?

I'm doing a query to the database, and to display the result on a #form element of the form, Nodejs does not recognize the document.getElementById ('element'), nor jQuery. Error: ReferenceError: document is not defined My method: Clien...
asked by 13.03.2017 / 04:35
1
answer

Problem loading static files on routes with nodeJS / expressJS

Programming my first system I came across a little problem ... I'm creating a client system and changed the structure of the views folder as follows: / app / views / clients clients.ejs add.ejs / users users.ejs add.ejs...
asked by 03.03.2017 / 18:21
0
answers

SyntaxError: Unexpected token (244: 78) - Nodejs, Express, jade, mysql

I'm developing a program and out of nowhere in creating a simple page appeared the error below: The program is working everything but this page that appears this error: I've gone over all the lines and found nothing, because I did not chan...
asked by 06.02.2017 / 20:18
0
answers

The location of the http module

I know that the http module belongs to the core of node.js. But where is it located? I can not find it.     
asked by 02.03.2017 / 13:54
0
answers

Post in table N: N with node.js and angularjs

I have a N: N relationship and 3 tables: projeto , pagamento and projeto_pagamento . In a form, I want to register a project and 5 payments, what would be the best way to accomplish this insertion? I thought of doing a post...
asked by 06.02.2017 / 17:40
1
answer

Dynamic routes with angle 2

I'm developing an angular application2 and wanted to create dynamic routes, which were generated from a .json file. Searching the following code: import { Routes ,RouterModule } from '@angular/router'; export const routes: Routes = getScreens...
asked by 06.02.2017 / 19:22
1
answer

Error installing Cordova + Ionic using Node.js

In an attempt to install Cordova + Ionic using Node.js, the following error is occurring: npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\ node_modules\npm\bin\npm-cli.js" "install" "-g" "...
asked by 30.01.2017 / 16:51
1
answer

How to consume a multipart form-date method with void method

How to consume a multipart / form-data method of a webservice done in java, by ajax or jquery? Below I leave the method as follows: JAVA: @POST @Path("/aprovarCompra") @Consumes("multipart/form-data") public void aprovarCompra...
asked by 16.01.2017 / 15:01
0
answers

How to publish an API written in Typescript in NPMjs?

I created an API in Typescript, soon. And I would like to know how to publish it in NPMjs, I know it has how to publish because Angular 2 downloads libs in Typescript. I do not know what steps to follow to publish. I did not find any examp...
asked by 11.01.2017 / 14:43
0
answers

Callback is not defined - Node js

I'm making a connection to the magento, and the connection works fine, but when I do the function I get the message    'ReferenceError: callback is not defined' Follow the Code, magento.catalogProduct.list(callback);     
asked by 28.01.2017 / 13:24