Questions tagged as 'javascript'

1
answer

How to remove characters to the right of a javascript string if I found a certain character

A string called myString gets the value below: minhaString = 'O dependente DEPENDENTE não foi cadastrado. Erro: A coluna 'NOME' não pertence à tabela PFDEPENDCOMPL. ======================================= em System.Data.DataRow.GetDataColum...
asked by 30.08.2018 / 22:05
1
answer

this. $. id only returns undefined

I'm using Polymer 2.x, I'm trying to preload the page, I made a div with a load gif and I'm going to get it with setTimeout ... But in the script when I use the function $. load it returns undefined. Could anyone help me put display none in div?...
asked by 27.08.2018 / 18:34
1
answer

Center svg within a rect element

Good morning, I have the following code <?xml version="1.0" encoding="utf-8"?> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 708.7 7...
asked by 26.07.2018 / 13:20
1
answer

Select buttons on a map

I'm trying to put click events on a list that I get from an API. This is the answer I return to status 200. In it I mount the buttons: if (xhr.status == 200) { let exercicio = xhr.responseText; exercicio = JSON.parse(exercicio)...
asked by 27.06.2018 / 17:29
1
answer

Javascript, alphabetical list is not working

This code is to create a list of blogger posts in alphabetical order. The title and image of the post is displayed. I changed this code to change the position of the image and title and create class , the image appeared after the title, ev...
asked by 28.06.2018 / 19:27
1
answer

Javascript validate before today

I'm trying to validate a date field of the 'txtDat' id, as follows: I want you to tell me a date with a date earlier than today, show alert("Por favor, insira uma data futura.") , and if you tell me a date longer than 30 days, show a...
asked by 27.06.2018 / 23:48
1
answer

Use global variable in Typescript with NodeJS

I'm looking for a way to use global variable in typescript with NodeJS. For example in js I can do: //init.js global.foo = "foo"; //teste.js var foo = global.foo; Is there any way I can do this in typescript? PS: I know it's not good pr...
asked by 07.09.2018 / 18:43
1
answer

Move Scroll with Buttons

I need to move a horizontal scroll with buttons. I have a horizontal gallery with horizontal scroll, and I need to click on the buttons in the upper right next / previous scroll next image or previous depending on the click button. Exampl...
asked by 09.09.2018 / 07:09
1
answer

How to change owl-nav's position on the Owl.Carousel

I'm using the Owl.Carousel and I'm breaking my head with the positioning of the NAV arrows, I need instead of being below the articles it stays up.     
asked by 11.09.2018 / 08:15
1
answer

Javascript - how to perform a search for a property on an array object?

Hello, I'm learning JavaScript and I need to search for a property (city) on an array object (markersData), and if the search term exists, then show the entire contents of the object. example: var markersData = [ { cidade: "Aceguá",...
asked by 07.07.2018 / 21:29