Questions tagged as 'javascript'

3
answers

Problems with XML request with AJAX

I'm having a problem I made a Javascript code to display via AJAX an XML with a list: My XML looks like this: <?xml version="1.0" encoding="ISO-8859-1"?> <telas> <item> <title>Lorem ipsum</title> <title>Dolo...
asked by 29.01.2014 / 19:43
0
answers

I'm having problems sending the form in ReactJS, I get the following error "Can not Post", does anyone know why?

import React, {Component} from 'react'; import './Calcular.css'; class Calcular extends Component{ state = { number1: '', number2: '', type: '', result: '' } Calc = () => { switch(this.sta...
asked by 27.12.2018 / 22:33
2
answers

Get connection instance

I would like to get the connection from the dbConnection.js file, but run the query on another file (DAO). I'm doing a NodeJS course and what I've learned is getting this connection and using a 'gerialized' method to run the queries. (in dbCo...
asked by 28.12.2018 / 12:51
0
answers

Treemap - layout

Next, I have a treemap that counts the clicks on the child nodes according to which each user clicks. It happens that, when in large scale of clicks, new values do not appear in the treemap because they are insignificant compared to those that a...
asked by 27.12.2018 / 19:05
1
answer

Dynamic Field Forms in Rails?

For my CBT project, I have the following specification: A user, to register a production item, needs to report all of their ingredients. To facilitate the interaction, I thought of, listing all the ingredients registered in checkboxes. When t...
asked by 02.07.2014 / 16:03
0
answers

Upload file between API's Node.Js

Hello, I have an API on nodejs, and I need to send a file to another API. Does anyone know how I can forward the request? I'm using https.request ( link ) to make the second request, and I get the file in req.files.file .    ...
asked by 27.12.2018 / 14:00
0
answers

Autocomplete Materialize with bd [closed]

Good morning. I'm developing a web app sales with Materialize, and I need to autocomplete the input of the product name, where it looks for the products already registered in the bd.    Input: <div class="input-field col s6"> &l...
asked by 27.12.2018 / 13:29
0
answers

Save result of a Firebase and Ionic calculation

I'm trying to save a result of a simple sum in Firebase but I can not retrieve the value and insert. Where am I going wrong? Home.html <ion-content padding class="content"> <form [formGroup]='form' class="principal"> <s...
asked by 29.12.2018 / 03:50
1
answer

Searching for data in JSON file

I need to get data in JSON, display it and search, so I developed this code, but I'm having trouble putting this data in an external file. How can I put this JSON in an external file, keeping the same current structure without using Jquery?...
asked by 28.12.2018 / 19:02
1
answer

Consign makes autoload of the module but has no response in the browser

nodemon] restarting due to changes... [nodemon] starting 'babel-node . --presets env' consign v0.1.6 Initialized in app + .\routes\index.js Server rodando com o express configured conf, nodemon warns that it loaded the index.js but in the site...
asked by 28.12.2018 / 22:41