Questions tagged as 'javascript'

2
answers

Javascript does not get changed array before the click

I have a click code: var layerMap = []; $(document).on('click', '#TipoMapa', function(){ console.log(layerMap); }); And I have a code that changes the layerMap variable: $(document).on('click', '#tipo', function(){ layerMap['...
asked by 19.12.2017 / 14:12
1
answer

Error trying to call more than one function in onPress

I have a Button with a onPress If I put this onPress like this: onPress={() => request.manifestacaoAnonima( this.state.email, this.state.selected, this.state.manifesto, this.state.tipomanifestacao,...
asked by 19.12.2017 / 17:43
4
answers

Knowing what index of array values matches variable

I have two JSON arrays in JavaScript and both are like this. First array: [""Amarelo"", ""Amarelo"", ""Amarelo"", ""Preto"", ""Preto"", ""Preto""] Second array: [""Pequeno"", ""Médio"", ""Grande"", ""Pequeno"", ""Médio"", ""Grande""]...
asked by 21.06.2018 / 19:42
1
answer

Injected Code

I use Framework7 and use the injected code via JavaScript. I need when the user clicks a certain button on the "Injected Page" return to the main. The history.go(-1) and the window.history.back(); do not work because the pages a...
asked by 21.06.2018 / 16:04
1
answer

Checking whether an element is visible or not on the page

I have the following buttons: First button: <button id="modal-btn" class="button btn-cart btn-verde-claro"> <span>Comprar</span> </button> Second button: <div class="btn-comprar-fixed-mobile" id="btn-comp...
asked by 05.01.2018 / 18:41
1
answer

How to make a for ajax requests?

Why does not this work? I mean it shows twice my alert and then for, with the value of aux_count being 17. for(var i = aux_cont; i > 0; i++ ){ var eval_data = eval(obj_grafico[aux_cont].series); alert(aux_cont); alert(i)...
asked by 03.01.2018 / 18:59
1
answer

Restrict CSS to IE

Is something missing in this parameter? I need this style to apply only to IE 11, when I include this code it works, but other browsers also get <!-- [if gte IE 8]--> <style> .box-form .logo-footer { margin-...
asked by 04.01.2018 / 14:55
1
answer

How to know if the scrollbar is active and its size?

I have a menu that opens based on the X and Y coordinates of the click , but when it was opened at the ends it ended up extrapolating the layout, I set it up, but when the scrollbar side is active it finishes extrapola...
asked by 06.12.2017 / 19:58
2
answers

Send form data by email

I downloaded the codes of a page on the link to use as a temporary page while the site of an event that I organize is not ready. The page has only one field where the person places the email and clicks send. I need it when I click the Send...
asked by 03.12.2017 / 14:58
4
answers

maxlength in currency mask

I'm using this currency mask, it works fine even though putting a maxlength into input does not limit the number of numbers. <script language="javascript"> function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecim...
asked by 06.12.2017 / 20:59