Questions tagged as 'javascript'

4
answers

Get divs with certain class

I need to make a system to delete messages, these messages are placed inside div's, where I divide like the html below. As in check box there is a place for the click, I separated a div that will simulate the movement of a click, when clicking o...
asked by 05.01.2016 / 18:02
1
answer

How do I know if a particular "class" is in use on my page?

Friends, There are many DIVs on my page, I need to check if any have not yet been "finalized", for example: <div class="triagem"> conteudo a ser analizado</div> ready-made DIVs get another "class": <div class="aprovada"...
asked by 23.03.2016 / 07:34
1
answer

Reload multiple images using Jquery? How to optimize?

I have an update of multiple images using Jquery: window.onload = function() { setInterval(function(){ $( ".image" ).each(function( index ) { base_url = $(this).attr('src').split('?rand=')[0]; address = ba...
asked by 23.03.2016 / 19:42
1
answer

How to open an external page in the phonegap when clicking?

Today I started to develop using PhoneGap, however I came across a problem, which is to click on a link and can not open an external page, as if it were a new activity, how can I perform this procedure only using html, css and javascript Thanks...
asked by 09.02.2016 / 22:54
1
answer

How to create a cookie for popup ads to open 1 time only 24 hours

I need help with my site. I use the popup format to modernize my website, but I gain the first time it is displayed for the same user in the 24 hour period ... Only this popup is being opened 4,5 and you 6 times for the same one user. I would li...
asked by 10.02.2016 / 08:29
1
answer

Why does not my Owl Carousel work? What am I installing wrong?

I'm setting up my owl carousel "custom" and I can not get it to work on my computer. I did everything as documentation does, but it does not work at all. The only thing that appears is the words of the next and prev, without any formatting, as i...
asked by 12.02.2016 / 12:51
1
answer

Sort multiple object arrays by value

People have the following situation: var input1 = {preco:valor1.toFixed(3), tipo:name1}; var input2 = {preco:valor2.toFixed(3), tipo:name2}; var input3 = {preco:valor3.toFixed(3), tipo:name3}; var input4 = {preco:valor4.toFixed(3), tipo:name4}...
asked by 02.03.2016 / 15:57
1
answer

jQuery Autocomplete plugin 1.2.3 limit for query [closed]

I use Jörn Zaefferer's jQuery Autocomplete plugin 1.2.3. I would like to know how to do the query only if I enter more than 3 characters. Call the plugin like this: $("#suggest5").autocomplete('completar.php', { width: 60...
asked by 01.03.2016 / 20:39
1
answer

Display videos in video tag using angularjs

View: <div class="list card" ng-repeat="x in content.spells"> .... <video width="320" height="240" ng-src="{{(getIdVideo(content.id) | trusted )}}" controls> Seu navegador não suporta o elemento <code>video<...
asked by 02.03.2016 / 16:11
2
answers

Links in javascript

Good morning, I'm having a problem when calling a link in javascript, in php I have a rule where everytime I put # URL # link .... it replaces it with the server address. Example # URL # public it replaces for link , in javascript I could not g...
asked by 02.03.2016 / 12:09