Questions tagged as 'javascript'

1
answer

Axios GET is not collecting any personally identifiable information

Save, I'm having trouble collecting data from a weather API. My goal is to collect a lot of the rain data and for this I am using Vue Axios but I can not collect anything because even after changing the code the same error continues. Code:...
asked by 20.11.2018 / 17:59
1
answer

No notification appears in chrome only in firefox [duplicate]

I can not make the notification work in chrome, only in mozilla, someone has a solution ???? //Verifica e solicita se o usuario tem permissao para utilizar as notificações do Chrome document.addEventListener('DOMContentL...
asked by 19.11.2018 / 20:13
1
answer

Problems calling a JavaScript function in a buttom in html! [closed]

I created two functions in js for two buttons in Html, one reads the name of visitors to the site and the other shows the name of the visitors who already read, as follows: var nomearray= [ ]; function nome(){ var nome = prompt("Olá viajan...
asked by 15.12.2018 / 22:53
1
answer

How to use popover in text without using Href

Good afternoon, how do I put a popover in a text without using a <a href ... ? Is it possible? My code: <div class="row"> <div role="main" class="col-md-6 col-md-push-3" align="center"> <img width=...
asked by 20.11.2018 / 18:07
1
answer

Access attribute of a JS object using as key the key of another attribute

I'm trying to get the value inside a given object using the key of another object: Ex: I have the objects: var obj1 = { id:'gh73f'} var obj2 = { gh73f : 123, h39sg : 764, c9wer : 921 } I've tried: var valor = obj2[obj1.id]...
asked by 27.05.2014 / 14:22
1
answer

Declaring variable with let [duplicate]

In the following code, why is not João returned when trying this.pessoa ? Where let was declared should go global, or not? let pessoa = 'João' console.log(this.pessoa) //undefined     
asked by 27.11.2018 / 12:23
1
answer

Real-time search with jQuery

I have the following code to do a real-time search with jQuery, searching for values inside a table: $(document).ready(function () { $(".nada").hide(); var $rows = $('.linhas'); $('#search').keyup(function () { var val =...
asked by 23.11.2018 / 11:35
1
answer

Fill modal to edit with information coming from the database based on id

I need to fill a Modal in edit mode based on the id I received. My code: $("body").on('click', '#editfoto', function () { $('#modalEdit').modal('show'); id = $(this).data("idedit"); $.get("editafoto.ph...
asked by 26.11.2018 / 14:39
1
answer

Unable to repeat when adding new item to a list

Hello, I would like your help. I'm creating a page with AngularJS to add tasks to a list. And I wish she would not repeat it, but unfortunately I can not do or find explanatory codes on the internet. Here is the code. angular.module('Tar...
asked by 02.09.2015 / 03:33
1
answer

Problem with Ajax request in JavaScript

I have a mobile application under development using Cordova , which performs a select on my external DB and checks with the mobile data so knowing if there is any change in the given. I am using a request via AJAX . The correct op...
asked by 02.09.2015 / 16:32