Questions tagged as 'jquery'

1
answer

How to get the current percentage of a download?

I want to get the percentage value of an ajax request from an external server. How to do? $("#uptade_space_disk").click(function(){ var url = "/calcular-espaco-em-disco" jQuery.ajax({ url: url, dataType: 'script',...
asked by 18.02.2014 / 16:15
1
answer

Element removal with Javascript

Removing an element using Jquery is the simplest and most objective thing to do, first you capture the element and then remove it: $('#elemento').remove(); I came in a situation where I need to remove the element only with pure javas...
asked by 27.09.2018 / 23:30
4
answers

Get complete number of an input

In <input> , I have the following value:    00001545455 When I retrieve the same with Javascript , it comes without the first 4 zeros. Can anyone help me? I'm already passing it on to the function I'm using. The problem...
asked by 12.03.2015 / 17:18
1
answer

Rotate an arrow on a canvas

I need to draw a stream dynamically based on the user's choices. In this flow I want to draw the chosen hypotheses (blue circles with numbers) and the direction between the choices (lines with arrows). For example: node 1 for node 2. JSFiddl...
asked by 16.01.2015 / 11:13
3
answers

Prevent user from pasting special characters

I am creating a system in which the user must type in an input the name of the mother with only alphanumeric characters. I'm using the code below that is working, but I noticed a flaw. Even allowing not to enter other special characters, if th...
asked by 06.01.2015 / 21:50
3
answers

Force execution order of jQuery events

Assuming a page that has multiple events being associated via jQuery. For example, in a certain section, I have: $().ready(function() { foo(); }); And more ahead I have: $().ready(function() { bar(); }); And several more lines...
asked by 03.02.2014 / 23:18
3
answers

How to display the exception message (ex.getMessage ()) thrown by the server in a jquery ajax?

@GET @Path("boleto/{processo}/{resposta}") @Produces({ "application/pdf","application/json"}) public Response gerarBoletoDividaAtivaComCaptcha(@PathParam("processo") String numeroProcesso,@PathParam("resposta") String resposta ) throws DetranExce...
asked by 14.02.2014 / 11:25
2
answers

Trigger an action when a given hash is found in the URL

The idea is to start an animation when a given hash is found in the URL. Example Taking the example of a page whose navigation works by hash: <nav> <ul> <li><a href="#john">John</a></li> &l...
asked by 15.01.2014 / 02:46
2
answers

Open link in a new tab without the target or window.open

I have a function that does a redirect: vm.pagarUpload = function() { $http({ method: 'POST', url: API.url + 'app/service.php?t=pagarUpload', data: { nome: vm.nomeUpload, email: vm.emailUploa...
asked by 18.12.2017 / 12:38
1
answer

How to implement editable table, updating the fields in the database automatically

I have the following table that lets you edit cells directly: The codes are in 4 parts:    MySQL table CREATE TABLE IF NOT EXISTS 'php_interview_questions' ( 'id' int(8) NOT NULL, 'question' text NOT NULL, 'answer' text NOT NULL,...
asked by 20.01.2017 / 19:20