Questions tagged as 'javascript'

0
answers

Request problem $ .ajax - Receive HTML table

I'm not able to mount the modal by getting a table using $ ajax . Anyone have any tips? I'm sending it this way: JS file: $("html").on('click', "#modalHorariosQuadra", function(){ var idQuadra = parseInt( $(this).val() ); var mod...
asked by 21.06.2018 / 21:02
1
answer

Put swal inside a js function

function excluiraluno(id){ decisao = confirm('Deseja deletar?'); if(decisao){ $.ajax({ url: "EditaExcluiAluno.php", dataType: "html", type: "POST", data: { id: id}, success: function(data){...
asked by 22.06.2018 / 01:11
0
answers

Does leaving active setInterval cause site slowness? [duplicate]

For example, I have a setInterval that will get every 1 second checking if the company chat is with an online attendant. If an attendant comes online, I give a clearInterval and stop the function, but if no attendant goes online, it keeps runn...
asked by 22.06.2018 / 21:26
0
answers

Angle within a radius google maps

I'm with a project using google maps, where I get the latlng information (which will create a marker in that location), plus radius and azimuth, knowing that the angle will always be 60 °. How can I form an angle with the azimuth, within a radiu...
asked by 03.07.2018 / 21:59
0
answers

How to uncheck a checkbox, when to close the div that shows what was marked.

Once I mark the checkbox options, I click on "ok" it it brings me the options I marked. giving the option to exclude it. But if I delete, the checkbox is still marked.     
asked by 21.06.2018 / 16:43
1
answer

JavaScript Prototypes

What is the purpose of the following methods: hasOwnProperty (); getPrototypeOf (); And what its function in the code below: var carro = {}; carro.modelo = 'Celta'; carro.marca = 'Chevrolet'; carro.hasOwnProperty('modelo'); Object.get...
asked by 21.06.2018 / 17:08
1
answer

How do I style this code with css and html? Blogger

The code below is for listing blogger posts within a bookmark , if the post has the specific bookmark it will be shown in this list I would like to be able to change the appearance of how everything is displayed by changing where the post image...
asked by 20.06.2018 / 20:31
1
answer

Custom banner system

Personally, I need to create a custom Banner system. Let me explain a little. I need to create something that: I send a photo, put this photo inside a frame, and in that generate another photo where I can save the two joined, as if it were an as...
asked by 17.06.2018 / 00:55
1
answer

Error to use mongodb filter

I'm having an error trying to run a filter on the database. var params = '{"cd_entidade":"'+ vcd_entidade+'"}'; Movmaterial.find(params).toArray(function(err,docs){ if (err) throw err; console.log(docs); } There was an error that I...
asked by 26.06.2018 / 02:09
3
answers

How to do that when clicking on a key a submit is sent [duplicated]

Well it's the following, I have a chat on my site, the chat has a text field and a send button that is to send. In other words, the person types in the text and then has to click the send. I'd like to know how you would do that by clicking...
asked by 05.12.2015 / 00:32