Questions tagged as 'jquery'

3
answers

How do I get the current position of a div by its class?

For example: <div class="container"> <div class="position"></div> <!-- Essa tinha que ser position [0]--> <div class="position"></div> <!-- Essa tinha que ser position [1]--> <div class="other...
asked by 20.02.2014 / 20:19
2
answers

How to select element at the lowest hierarchical level?

I need to select the ul parent of the li element being clicked. But as a li stays within the other the javascript understands that I am clicking on li and all li pais. <ul class="lista"> <li clas...
asked by 28.02.2014 / 20:18
2
answers

How to validate fixed and mobile phone number jQuery Validator?

I need a cell phone and landline validation method with the jQuery Validator plug-in. Differentiation of fixed-to-mobile numbers is important in order to validate the sending of SMS.     
asked by 07.05.2014 / 22:29
3
answers

Is there an application security vulnerability when using AJAX?

I'm a HTML/CSS/PHP programmer for a few years and incredible and impossible to look at, I'm just entering the Javascript world with jQuery and AJAX now. My question is whether the security level is affected when we pass para...
asked by 30.08.2014 / 22:06
2
answers

How to convert an html string into a jQuery object?

How to convert an HTML to a jQuery object? var objeto = '<div id="minhaDiv"><span id="meuSpan">Span</span></div>';     
asked by 18.09.2015 / 19:09
3
answers

Know if a video paused to upload?

I'm using shaka-player to play a dash stream from a Nimble server, but I've been reading that waiting event is not always the most reliable option, and in fact when the video stops loading the image simply freezes, and my event is...
asked by 25.04.2017 / 18:38
4
answers

Internal navigation with JQuery [duplicate]

I have the following structure in my header: <header> ... <div id="header-reserva" class="cf"> <a href="#header-reserva-iframe" class="scroll">Reserve aqui!</a> </div> ... <iframe id="header-reserva-ifr...
asked by 28.02.2014 / 14:59
3
answers

function $ .Ajax () return value?

this is the code: var res = VerFileRepetidoBancoAjax( "teste" ); console.log("res="+res); function VerFileRepetidoBancoAjax( str ){ $.ajax({ url: "caminho.", type: "get", dataType:"json", data: "dado="+ str, async:...
asked by 18.08.2014 / 17:05
1
answer

Move character sprite on canvas and change image [closed]

Well, I would like to know how I could implement a sprite on my canvas, I am very lay with canvas, the idea is, by pressing arrow -> he runs the sprite 1.png, the squeeze arrow < - he runs the sprite 2.png, and when left click he performs spr...
asked by 19.06.2016 / 01:00
3
answers

Abort AJAX request

I have a question. I need to cancel an AJAX request on the client side and on the server side. On the client side I use abort() var requisicao = $.ajax({ url : 'xyz.php' }); if(requisicao && cliente_abortou_requisicao){...
asked by 07.11.2016 / 19:05