Questions tagged as 'javascript'

2
answers

floating div accompany scroll page

Would anyone have any ideas or SIMPLIFIED examples of how to make a floating div scroll along with the page scroll? Something very simple, for understanding and learning, because the existing ones here are very confusing and I have been seeking...
asked by 02.05.2018 / 23:21
0
answers

ECDH between C # and javascript

I'm creating a web API and I need to implement ECDH for end-to-end encryption. On the server side I have a C # application and the client side a javascript application. I can change the keys, generate the private keys and encrypt a message, b...
asked by 03.09.2018 / 18:43
3
answers

Filter array of strings

How do I go through an array of names using the filter function of javascript where the return is just the names of people with the surname "Carvalho"? Example: let nomes = ["Thiago Carvalho", "Renata Carvalho", "Alexandre Otoni", "Guilherm...
asked by 19.04.2018 / 01:59
0
answers

My modal does not load

I'm having a problem submitting a success modality after clicking a btn.      if ('@ViewBag.Mensagem' != '') { $(function () { $('#ModalSucesso').modal('toggle'); $('#ModalSucesso').modal({ backdrop: 'static', keyboard: fals...
asked by 20.04.2018 / 15:44
1
answer

Cordova API Offline

I have a question, I've done some research, but I do not find anything concrete and I do not know if what I want to do is possible. So I would like to know if you can help me? I'm putting together an app that will consume a Rest API for produ...
asked by 27.03.2018 / 03:38
1
answer

Problem when trying to use values from a JSON - Javascript

I have the following javascript code inside a function called query () that receives the index value of an input: var request = new XMLHttpRequest(); if (!request) { alert('Que pena :( a requisição não pode ser feita'); }else{ re...
asked by 17.03.2018 / 02:55
0
answers

Promises serve to replace the callback functions? [duplicate]

promises replace the callback functions ? Or are promises used only in asynchronous functions?     
asked by 03.07.2018 / 18:34
0
answers

How to use Data array in Highcharts?

I did this simulation ( jsfiddle too): $(function() { $.ajax({ url: "https://www.json-generator.com/api/json/get/cqueInyKdK?indent=2", type: 'POST' }).done(function(makeTheDO) { console.log(makeTheDO); //data...
asked by 27.03.2018 / 20:05
2
answers

Validating invoice closing for purchase type and selling JavaScript and submitting for an api

I am a beginner and I locked in the invoice closing validation. I built a list in this format: [ date: '2017-5-9', value: '59.99', type: 'credit', typePag: 1 }, { date: '2017-12-17',value: 'R$ 151.08',type: 'debit', typePag: 2 } ]; W...
asked by 31.03.2018 / 05:12
1
answer

Sub-menu decentralized - according to browser, I do not know where I'm going wrong

/*Sub-Menu*/ .menu.superior .nivel-dois, .menu.superior .nivel-dois, .menu.superior .nivel-um li:hover .nivel-dois{ display: contents; position:absolute; } .pagina-login .menu.superior, .pagina-busca .menu.superior, .pagina-carrinho .me...
asked by 29.03.2018 / 14:49