Questions tagged as 'jquery'

1
answer

Ajax and JSON dataType

When I do this, return is a parsererror. $.ajax({ type: "GET", url: "servicos.php", data: "id=1", dataType: 'json', ==========================> Essa linha bem aqui success: function(retorno,status){ // retorno = JSON...
asked by 03.04.2018 / 18:31
2
answers

View image until the gif is loaded

I am loading a gif when the user hover over a certain <div> . I do this using jQuerry with the following code: $('#vidthumb_' + idDoDiv).attr('src', caminhoParaOGif); The problem is that the gif takes about 1 second to load, and...
asked by 07.02.2018 / 15:06
2
answers

Jquery only for mobile, is it possible?

I have this snippet of my code that does a scrool for the class "tabs" $('html, body').animate({scrollTop: $(".abas").offset().top}, 300); Would it be possible to call the .abas_mobile class on the desktop and mobile .abas_mobile I'...
asked by 07.02.2018 / 12:37
1
answer

Jquery mask for real currency

I'm using this mask: mask ('#. ## 0.00', {reverse: true}); There are some inputs that get some calculations like this: $('#vd_ga').on('blur',function(){ var vd_ga = $('#vd_ga').val().replace(',', '.'); var pvm_ga = $...
asked by 13.02.2018 / 23:56
2
answers

Simulate event click tag list Span

I have a page where I display some audios when the user clicks and fires the sound. ExampleHTML<td><spanclass="audiospeak" data-lang="en" data-aid="of">of</span></td> <td><span class="audiospeak" data-lang="en"...
asked by 14.02.2018 / 14:40
1
answer

Error request Ajax Jquery C #

I'm getting error 401 in a simple Ajax query with Jquery. Requisition: $().ready(function () { $.ajax({ url: "Ajax/RetornoAjax.aspx/ObterResultados", type: "GET", //Caso não passe nenhum dado dat...
asked by 05.02.2018 / 19:44
2
answers

Show and hide according to another event

I have 2 show / hide buttons of 2 groups: group1 and group2. When I click to open group1, for example, it opens a card with information from that group and when I click hide it it hides. So far so good! What I want is that when I click on...
asked by 05.02.2018 / 19:09
1
answer

Field file with Jquery

I'm creating an upload via a modal like this: <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header...
asked by 05.02.2018 / 16:31
1
answer

"Uncaught SyntaxError: missing) after argument list" in .append JQuery

I'm getting "Uncaught SyntaxError: missing" after argument list "which accuses the line of the last closed parentage, this inside the callback of a jquery post. I tried to close anyway possible, and even then I get the error. I do not understand...
asked by 23.02.2018 / 11:55
2
answers

Undefined when attempting to use the valid JSON received

I have a boring problem of finding the error, I'm already looking for hours here. I'm getting a JSON from PHP using JQuery, I can see it as you can see below the result of the answer "date": { "sucesso": 1, "dados": { "BTC_YAMR...
asked by 23.02.2018 / 03:12