Questions tagged as 'javascript'

1
answer

How do I delete a specific object on the HTML5 canvas?

Well, for example I have two rectangles drawn on canvas: const canvas = document.getElementById('canvas') const context = canvas.getContext('2d'); context.fillRect(20,20,150,100); context.fillRect(300,300,150,100); <canvas id="c...
asked by 27.07.2018 / 16:33
1
answer

Take an element that is inside an iframe

I needed to get a title that is inside an iframe, I did it with jquery but it takes a lot to fade or even disappear. I did so with jquery: $(document).ready(function () { $("iframe").contents().find(".titulo").css("display","none"); });...
asked by 27.07.2018 / 19:45
4
answers

Check the size of the files (all) with Jquey

I have a form that sends email with attachment. You need to do a validation on the same client side. Would you like to submit the form? type: if the sum of attachment sizes is larger than 5MB do not allow sending. HTML: <form id="form...
asked by 25.06.2018 / 16:36
1
answer

What does this expression mean?

By studying Node-Red a bit I came across the following expression, {{#header.url} . Many expressions of the type are present in the code, for example: {{/header.url}} , {{#header.image}} , etc. Here is a snippet of code: &...
asked by 13.04.2017 / 21:25
1
answer

I want to move the mouse over a Li, the result appears in the DIV

I want to hover the mouse over a li , the result will appear in div Placing the mouse on Son 2: example: Parent 1 > Son 2 Or in Father 2: Father 2 <li ><a href="#estaEm">Pai 1</a> <ul> <li...
asked by 26.04.2017 / 17:02
1
answer

How to determine the direction of the touchmove

How in the javascript / jquery to know which direction is the touchmove? Example: var ts; $(document).bind('touchstart', function(e) { ts = e.originalEvent.touches[0].clientY; }); $(document).bind('touchmove', function(...
asked by 28.09.2014 / 03:36
1
answer

How to change content inside the div with Ajax / Jquery?

Here you list all the records that when you click edit opens a modal with a description value. <?php foreach ($beneficios as $v): ?> <tr> <td><?= $v->id; ?></td&...
asked by 31.03.2017 / 16:31
1
answer

'Search in All' using LinqJs

I'm using linqJs When I try to get the id 5512 it returns null , but when I get the 124 , it works. $.Enumerable.From(structure).Where("$.id==5512").ToArray(); Object structure: [{ "id": 124, "text": "Pai"...
asked by 11.04.2017 / 22:51
1
answer

Align divs on the left with css, separating them into groups, without line break

I'm looking for a way to align divs to the left, however, keep them divided into groups, without a group breaking the line. The code below comes close, but I would like to get the result of the image. .group { border-width: 1px...
asked by 31.05.2017 / 19:22
2
answers

How to return function correctly? (Scope of Variables)

I have the following function that performs a request to an API using the Angular and would like the function to return the data, but I'm having variable scope problems: var buscarVagasPorEndereco = function(){ var enderecosVagas = [];...
asked by 02.06.2017 / 21:58