Questions tagged as 'javascript'

3
answers

Apply class when firing mouseenter individually

I am trying to make scores with stars and that when passing over each one, a css class is applied. The fact is that it applies to all the stars at once and my intention is that it only applies when you pass the mouse over from beginning to end a...
asked by 26.02.2018 / 14:31
1
answer

select an index of a select in html and based on it affect another Javascript element

Hi, I have time looking for an answer to this, what I want is that when I select an option of my select I can change the text of an imput                                                               Request:                                   ...
asked by 24.02.2018 / 01:54
1
answer

Union of two variables to create a third array

Address where I am writing the code (no need to enter). I am making a page where the description of several users of twitchTV appears, corresponding to a freecodecamp exercise [266]. The fact is that to automate the process and not having t...
asked by 28.08.2016 / 07:19
1
answer

notifications on the desktop from node.js

I have a chat programmed with Node.js , PHP and MySQL , I just need to notify the user that he has new messages, but notifications of HTML5 vanish. Does anyone know if it is possible to program them as desktop notifi...
asked by 19.09.2016 / 20:34
2
answers

Ajax jquery success: funtion execute a function

success:function(data) { $('#login').val("Login"); if (data=="1") { $(location).attr('href','index.php'); } else { swal("Error", "Datos Icorrectos)", "error"); } } I want to show the fo...
asked by 03.08.2016 / 00:31
1
answer

Problems with Google-Maps in Drupal 7.5

I am working with a template in drupal in which I need to place a map of google maps , install the gmap modules and others that are needed to be able to place the maps. When I place the map on an internal page it works perfectly,...
asked by 04.08.2016 / 07:39
1
answer

Save JavaScript object in a JSON file, grunt task

I'm pretty new to this tool, so I'm trying to use everything I can in tasks. At the moment I'm using a plugin to read documents in Google Drive , the problem is not reading, it's the writing of the jsons. It is necessary to change the way the J...
asked by 10.08.2016 / 22:01
1
answer

Duda Symfony, Ajax, Controller

How can I do what is proposed in this question, but passing a parameter to the controller from the ajax, and then, from the controller, returning to the same view where the ajax is executed that parameter through twig? This may sound redund...
asked by 05.08.2016 / 22:40
1
answer

chrome.windows.create

I try to create a popup window from an addon, but the Google documentation seems insufficient. Code: var opciones ={ 'url': url, 'width':400, 'height':300, 'type': 'popup' }; chrome.windows.create(opciones, function(windo...
asked by 11.05.2017 / 17:18
1
answer

How can I occupy JavaScript collapse repeatedly?

I have a problem with this function since it does not allow me to use it more than twice, that is to say the button if it appears in all my options but when pressing another button only the information of the first one is moved, I am very new pr...
asked by 17.05.2017 / 18:38