Questions tagged as 'javascript'

3
answers

Retrieve the index of an object with a certain attribute inside an array of objects

I have the following in javascript: var listaImagens = [{"idImagem":4,"arquivo":"illustration_transport-04.svg","idCategoria":1,"nomeCategoria":"Transportes","modificacoes":[{"id":"sxqae3wtj1h2rzfr","cor":"#ff6500"},{"id":"egltjnqi7ut2zkt9","c...
asked by 11.09.2014 / 15:49
1
answer

How to customize the og (Open Graph) tags on the post page - Wordpress

I am creating a template from scratch for Wordpress, but I would like to change the content of the og tags according to the content of the post, ie define image title and description Thank you in advance     
asked by 10.09.2014 / 18:09
1
answer

Change information with JS-JQUERY

I am trying to change a certain value inside my html code, through JS-JEQUERY, but it is not changing, my logic is wrong? Follow the code: var valor = "texto"; $('.botao botao-comprar principal grande desativo with-popover').on('click'...
asked by 13.12.2018 / 15:59
1
answer

How to get individual td values from PivotTables without clicking the row

I have a button that sends the form, and inside the form have the respective fields, inside the form has a table that dynamically brings the data of the bank that is allows editing the values of each line: $("#update-baixa").click(...
asked by 13.12.2018 / 11:20
1
answer

Upload response comment with AJAX without refreshing the page

I am sending comments with AJAX and then loading it into the reply, it works fine except that the response link is not being rendered on the page, after clicking on post reply the page is being updated and returning the reply, but the right thin...
asked by 13.12.2018 / 01:35
1
answer

JS variable for PHP or direct in BD [closed]

Good morning. I'm a beginner programmer, and I'm developing a sales web app, which sums all product prices dynamically included by javascript: <script> function somaTotal() { var total = 0; $(".input_preco_venda").each(functi...
asked by 13.12.2018 / 15:06
1
answer

How to implement a search engine on a site that is in a Node.js environment

I made a site in the Node.js environment, using Express, Jade template engine, The problem is that the search engine I have ready is in PHP, I do not know if I can run it in Node environment; if you could, how would you do? If it is not possi...
asked by 08.05.2014 / 04:46
1
answer

Change the checked value of an input type = 'radio'

I have two radio inputs <input id="tab-1" type="radio" value="juridica" name="tab" class="sign-in"><label for="tab-1"class="tab">Jurídico</label>...
asked by 07.12.2018 / 15:18
1
answer

Html5 - onContextMenu, block other events

Hello, I'm using the onContextMenu event with e.preventDefault() to create a custom menu. The problem is that if it is the "native" behavior of the browser, events like Scroll and Zoom are deactivated, and by using this way they are still...
asked by 07.12.2018 / 09:33
1
answer

How to display the hidden div after reloading the page?

Hello, everyone. I'm developing a page where there is a hidden button that appears after a certain time. My code: HTML: <script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script><divclass="diminuir-video" styl...
asked by 06.12.2018 / 17:21