Questions tagged as 'javascript'

4
answers

Lock CTRL key on All Browsers

I want to Protect my Content. I've already "Destroyed" the Right Click on my Site, But now I would like to lock the CTRL key. Because it gives rise to copy and paste commands, and I do not want to use it on my site. Is there any code to override...
asked by 22.05.2015 / 02:59
3
answers

How to change a value of a literal JavaScript object?

I'm trying to change the value of a property in a JavaScript object, but in object creation literally, not constructor. var cliente = { nome: "Wesley", idade: 20, cargo: "Front End", setAtualiza : functiion(n, i, c){ thi...
asked by 13.04.2015 / 19:50
2
answers

Sort list with vue

Hello, ladies and gentlemen, I am a beginner with vue and I am creating a list, but I am having difficulty understanding how I will sort the list by clicking on the following title column: new Vue({ el: "#lista", data:{ users :[...
asked by 12.06.2017 / 21:40
3
answers

Retrieve the id of a checkbox for the class using getElementsByClassName ()?

I'm populating a table with data coming from the database, the ids are dynamic using the database id, I need to retrieve these ids with javascript, follow the code as an example. function selecionaDactes(){ var ids = document.getElemen...
asked by 03.05.2017 / 23:43
1
answer

Conflict between jquery.js

I am having a conflict between <script src="assets/vendor/jquery/jquery-3.3.1.min.js"></script> and the <script src="//code.jquery.com/jquery-1.12.4.js"></script> <script src="//code.jquery.com/ui/1.12.1/jquery-...
asked by 03.12.2018 / 09:09
4
answers

How do I prevent the input-text focus from being lost when I click on another element?

I have input of type text , where I can enter a search, which is executed via ajax, as the user types. Below this I have a list of items that were found in table . When I click on this table, I change the style of the row clic...
asked by 13.02.2014 / 14:15
1
answer

Show only option marked in select in JS

I have a table with multiple entries, I would like through select to select a data type and only appear that selected data. <select> <option selected>Escolher...</option> <option value="1">A</option>...
asked by 24.10.2018 / 03:13
3
answers

Download images

Problem How do I download multiple images with javascript? For example, how do I do when I click a button in javascript it automatically accesses the url: link and download the image? HTML <button onclick="salvar_imagem()">...
asked by 06.03.2014 / 13:18
1
answer

How do I create a table of contents in the text with some WYSIWYG?

I would like to create a table of contents: 1 - Titulo Tal 1.1 - Subtitulo 1.1.2 - outro 2 - Outro titulo 2.1 - subtitulo etc... I'd like something automatic, but I have no idea where to start. Could someone give me an idea or direction fo...
asked by 05.03.2014 / 18:32
4
answers

How to make Ajax requests, with Jquery, in different domains?

Is it possible to perform a POST-type request to a url that is not part of the domain of our application? $.ajax({ type: "POST", url: "http://www.dominioexterno.com.br/acao/", data: { var1: $('#input1').val(), var2:...
asked by 09.04.2014 / 15:09