Questions tagged as 'javascript'

1
answer

Is it possible to create an iframe for a specific part of a page?

Is it possible to get a specific part of a site by mapping it to an iframe? I've seen some solutions using css, but it does not have the effect of setting the region. clip: rect (top, right, bottom, left)     
asked by 09.06.2016 / 05:57
1
answer

Function javascript work with dynamically generated elements

How do I make this function work with dynamically generated elements? It works when element is loaded along with the page, but when I generate the div with ajax the function does not work! $('.rating1').likeDislike({ reverseMode: true,...
asked by 07.03.2018 / 17:01
2
answers

How to convert a date (string) to another format using JavaScript?

I have the following string: 2016-06-08 - 10:08 I need to convert this string to the other format: 08-06-2016 10:08 How do I proceed? function dateFormat(date) { inputFormat = new java.text.SimpleDateFormat('dd-MM-yy...
asked by 08.06.2016 / 19:12
2
answers

How to enable and disable an input of type text after a selected value in the combobox

My jQuery < script > $(document).ready(function() { var tipo = $("#idTipoParticipante option:selected").text(); if (tipo == 'Personagem') { $("#enable").click(function() { // habilitando...
asked by 08.06.2016 / 11:01
2
answers

Open Poup-Up - Help

I have the following HTML, but everything on the same page id entry is where it gets my input field from the typed address arrival is where it gets the final address result is the calculation: <div id="entrada"></div>...
asked by 31.03.2018 / 19:07
2
answers

aside inside the header

Hello, I would like to know if it is semantic to use the <aside></aside> tag inside the head in a menu that is fixed in the header of the page next to the logo of the site, in my conclusion I think it is wrong because the tag...
asked by 31.03.2018 / 07:10
2
answers

Using the filter method an array of objects

I have an array of objects: const musicData = [ { artist: 'Adele', name: '25', sales: 1731000 }, { artist: 'Drake', name: 'Views', sales: 1608000 }, { artist: 'Beyonce', name: 'Lemonade', sales: 1554000 }, { artist: 'Chris Stap...
asked by 11.03.2018 / 02:51
1
answer

Filter array of objects by key

At the moment it is returning only if the string to be queried is exactly like the object key let estilos = { "alignContent": [ { "ativo": false } ], "alignItems": [ { "ativo": false } ], "alignSelf": [ { "ativo": false } ], "alignmentBa...
asked by 11.03.2018 / 03:22
2
answers

Session does not log off in php

I'm creating a small site, but when I press to exit, the site shifts, but if I put the link on one of the pages, I can enter the system and it does not check if it was logged in, even with security fields Login.php: <div class="login">...
asked by 01.03.2018 / 01:20
1
answer

How to prevent modifications to the template

Hello, I'm a bit of a layman in PHP, learning little by little and discovering new things. I would like to know how to prevent a certain person who owns my template has the restriction of not being able to modify the footer in the case of the cr...
asked by 28.02.2018 / 20:32