Questions tagged as 'funciones'

2
answers

Delete event associated with an anonymous function

I have the following function that associates events with a series of elements: function colorCeldasActivo(color) { //Damos eventos a todas las celdas var celdas = document.getElementsByClassName("celdadibujo"); for (var i = 0; i &l...
asked by 09.02.2018 / 04:40
5
answers

Function #define

In a code that uses #define RULE 90, before the function main() , Is there any way that the value of the variable, in this example the 90, is requested when the program is executed, instead of having to enter it in the code, every t...
asked by 17.04.2018 / 10:06
2
answers

How to call a function in time of execution in c [closed]

For example with this pseudocode function suma(a,b) { return a+b } function callfun(namefunction,arg1,arg2) { namefunction(arg1,arg2) } I also need to know how to make a console and     from the console I wri...
asked by 08.12.2016 / 18:45
1
answer

Modify node in C

I have this function to modify a node, but when I use it, it modifies the node I asked for but deletes the others. How can I change it and not delete the other nodes? _nodoActividades *modificarActividades(_nodoActividades *apuntador) {...
asked by 02.12.2016 / 07:23
1
answer

Get and change CSS of some containers

I hope you are well, I tell you what I should do ... I must do a function that detects me if one or many div within their styles have the property background-color: #ffffff; and in case they have it, change it by background-color: #...
asked by 28.12.2018 / 16:18
4
answers

Functions onclick on a href - PHP - Javascript

I have the following code in a form, it belongs to a column of a table with data collected from a MySQL database. echo "<td width=\"08%\" id=\"estado".$row['ID_OBLIGATORIO']."\">" ?> <!-- Columna ESTADO del usuario. --> <...
asked by 16.11.2016 / 12:57
2
answers

Help with JavaScript exercise

I need help with the following exercise: It is an exercise using JS in the browser console, I have 3 cards, I have to create a function and add them with the following condition, if the card is a 1 value of 20 and if it is a red card it is worth...
asked by 07.08.2018 / 15:10
2
answers

How to pass a javascript variable to an external php

I have a javascript function in which I get a variable that I need to use in a different php file and I do not know how to do it. I show you the code of the files, thanks in advance. JavaScript file (test1.html) function boton() { var...
asked by 20.04.2018 / 17:07
3
answers

Get the variable id that contains a label to

I'm trying to get through JS the id that has a tag. The id is going to vary, so when doing onClick I have to know it. <a href="#" role="button" onClick="abrirNoticia();" id="id">Título</a> As for the function, I was using the fo...
asked by 18.07.2017 / 20:21
2
answers

split Javascript separator

I have to write a function in which I pass a complete name (string) and return the abbreviated name (the name and first letter of the first surname, followed by a period) - > that is, I type Pepito Perez and Pepito P has to return me. I am...
asked by 24.10.2018 / 13:32