Questions tagged as 'javascript'

1
answer

visualImg () is not defined at HTMLInputElement.onchange

I've seen some topics that look like this, I followed the recommendations and I did not succeed, so I open a new topic. This error occurs when I upload an image and at the time of displaying it this message appears. PS: I already checked the pag...
asked by 28.07.2017 / 15:56
1
answer

Handling classes with jQuery / Javascript

Within the hierarchy below, how can I manipulate a given class to <th> after clicking on an element within <td> ? Remembering that there are several tables like this one. <table> <thead> <tr>...
asked by 27.07.2017 / 20:41
1
answer

Javascript excerpt does not work

I do not know what I'm doing wrong, maybe it can be simple, but it does not give me the expected result. In creating the html component: <li class="dropdown notifications-menu"> <a href="#" class="dropdown-toggle"...
asked by 17.08.2017 / 01:21
2
answers

jQuery / AJAX: a single form that can be submitted to different urls (POST or PUT)

I have the following scenario: I have a form that is used to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button on each row of the teachers table that calls...
asked by 16.08.2017 / 02:53
1
answer

Synchronous function to check files in NodeJS?

I'm creating PDF's on my NodeJS server using the Express framework and the PdfMake library. If someone looks at my profile I will see that I asked a question about corrupted PDF after download. It turns out that I have discovered that the files...
asked by 15.08.2017 / 21:29
1
answer

Accessing a JSON with JS

I was trying to access a JSON with JS, here is an example of how they are: { status: "0", ano: "Não Informado", competencia: "Não Informado", id_Publication: "8" } But in fact this is only part of the full JSON. This is " a multid...
asked by 16.08.2017 / 21:34
1
answer

Put accent on javascript code [duplicate]

I'm doing a pedagogical job of completing words, however some words have accents and even if I put in the code it appears that it is wrong, I wanted to know how to put the word in the code with accent and at the time of the test when put with...
asked by 15.08.2017 / 19:23
1
answer

Angular Service using third party packages

I am creating a service in angular that consumes a package to query a api , but I always get the same error;    Can not resolve all parameters for ApiService: (?). o Code: import { Injectable, Inject } from '@angular...
asked by 08.08.2017 / 17:59
1
answer

Passing value of a variable in Array?

I have the following variable: var prodadicional = $(this).attr('data-adicionais'); It returns two string values that are: Hamburger and Bacon. How do I place them within a array ? I tried to pass inside array and count wit...
asked by 14.07.2017 / 15:27
1
answer

jquery ajax printa index on screen

I am having problems with jquery because it invests of printar on the screen only the echo of my php it is printing all index on the screen how to solve this? <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js...
asked by 07.07.2017 / 17:47