Questions tagged as 'javascript'

0
answers

Deleting equal data with a for

How do I eliminate in%% of the value that is coming in the result variable. For example if I came 8:00 to expose only the hours without 8:00. function buscarHorarios(dataConsu) { medico = $('#umedico').val(); $.ajax({ url: 'select2.p...
asked by 04.06.2018 / 19:33
0
answers

homepage button - javascript

I'm trying to make a particular button, on click, get you back to the homepage. As I'm mostly working with Javascript (I can not use j-query), I'm creating functions that delete the current elements and display the elements corresponding to t...
asked by 04.06.2018 / 23:54
2
answers

Doubt with Jquery Load

I have a menu that I will use on all pages, so I want to load the content: I'm doing this: <head> <meta charset="utf-8"> <!-- This file has been downloaded from Bootsnipp.com. Enjoy! --> <title> </titl...
asked by 21.09.2017 / 20:18
1
answer

How to retrieve the value separately from input numbers with the same class

Well, I'm having a little problem in getting the value entered in the input number of some cards I created ... Basically, it is repeating the value on all inputs of all cards Allinputsareinthesameclass,andeverytimeIclicktheaddbuttonortypeavalue...
asked by 04.06.2018 / 23:42
2
answers

load disables jquery functions [duplicate]

I'm giving a load () on my div, but it always disables jquery commands as soon as it loads! Any solution ??? $(document).ready(function () { $('#form_campo').on('submit', function() { $.ajax({ url: 'matriz/salvacad.php',...
asked by 04.06.2018 / 20:52
0
answers

Node Error: ER_PARSE_ERROR when trying to insert into mysql

I have a NodeJs application and I am trying to insert some records in a MySql form, but when I run the code below I get the following message. Code: CadastroModel.prototype.cadastrarEstudio = function(estudio, callback) { var sql = 'INS...
asked by 10.06.2018 / 08:06
0
answers

I can not use TinyMCE in Laravel 5.6

I'm having problems with TinyMCE on Laravel. I'll declare his js as explained. I already tested to see if it was really charging and it was positive. But when I declare: tinymce.init({ selector:'#question' }); Nothing happens. In the cod...
asked by 10.06.2018 / 05:17
0
answers

Why does the method gain another object?

Follow the script. var indice = 0; class Numeros { constructor() { this.indice = 0; this.exibir(); } exibir() { var quadro = document.getElementsByClassName("quadro"); document.write(this);...
asked by 10.06.2018 / 18:11
0
answers

Dynamic interface based on values of an object (Typescript)

I'm trying to accomplish the following: interface A { name: string, type: string } let var_A: Array<A> = [ {name: 'firstName', type: 'string'}, {name: 'lastName', type: 'string'}, {name: 'age', type: 'number'}...
asked by 12.06.2018 / 06:24
0
answers

The PUT request is not sending the whole object

This is the put I am giving, (below will have the Json that is coming from the body): put(endpoint: string, body: any) { return new Promise((resolve, reject) => { return this.http.put(this.url + '/' + endpoint, body) .subscribe(...
asked by 12.06.2018 / 03:00