Questions tagged as 'javascript'

1
answer

Dropdown with SVG

I'm with an art and now it's in an SVG file. The problem is that the client wants that when passing the mouse (or if clicking) in a block, it should open a menu. I do not know if you can create this, but I wanted to know. The SVG code I have tod...
asked by 30.11.2015 / 16:58
1
answer

How to change the volume of an iframe video by javascript?

I have tried the code below to solve. var volumeIcon = 1; $(".ico-volume").on('click', function(event) { if (volumeIcon == 1) { $(this).find("img").removeAttr('src'); $(this).find("img").attr('src', 'img/ico/volume-out-ico....
asked by 20.11.2015 / 13:35
1
answer

Get autocomplete return and put on different inputs

I have the following script <script type="text/javascript"> $().ready(function() { $("#course").autocomplete("teste1.php", { width: 260, matchContains: true, selectFirst: false...
asked by 03.12.2015 / 17:44
2
answers

How to remove all classes from an element using jQuery?

Instead of removing all classes individually using the remove class: $ ("# div"). removeClass ('class') For each class an element can have, is there any function that can be called and remove all classes in an element? I need this in jQuer...
asked by 13.12.2017 / 16:34
4
answers

My functions only return 0

I was trying to make the Bhaskara formula into functions, but something went wrong and only returns 0 no matter what inputs I put in. Here is the code: function bhaskaraP(ab, bb, cb) { var Mb = bb * -1 var b2 = bb * bb var del...
asked by 19.11.2018 / 23:40
2
answers

Angularjs - test assignment of a variable in $ scope in an asynchronous function

I want to test the following scenario: I have a scope: var scope; beforeEach(inject(function($rootScope) { scope = $rootScope.$new(); })); You need to test whether the assignment of a variable in the $ scope within an asynchronous fun...
asked by 22.02.2014 / 03:10
3
answers

Autocomplete jQuery does not show options

Description Need: Need to autocomplete with jQuery , PHP and from what was selected, I get ID , query the database, and display what I need . Problem: I'm not able to display the records in input that load...
asked by 22.02.2014 / 03:53
1
answer

Open images on the same page with Fancybox in CakePHP Impossible

I'm trying to make a gallery, which consists of a list of thumbnails, that clicking on the items eventually would pop up a popup like the first example here . After several failed attempts, where even the thumbnails did not appear, at the su...
asked by 17.03.2014 / 17:55
2
answers

How do I know if the calculation generated an integer?

How do I know if the calculation generated an integer? example: if (10 / 2 = NUMERO INTEIRO) {}     
asked by 01.09.2014 / 05:16
5
answers

Browserify + NodeJS [node: File or directory not found]

Situation I'm developing an extension for Google Chrome, and I need to use some NodeJs modules so I've found the Browserify tool so I can add modules to use it in the browser Environment I have the NodeJs, NPM and Browserify installed o...
asked by 28.04.2014 / 23:01