Questions tagged as 'funciones'

1
answer

get the text of an element (td) with javascript

I have a question how to obtain the value of an element (the text within it) since apparently I do not achieve it with .value, .innerHTML, textContent and now I thought I would do it with target..but I do not solve it..someone could you help me...
asked by 13.12.2018 / 07:39
1
answer

Recognize images from a url - Regular Expressions

I have a function in which recognizes the url <?php function findReplaceURL($text){ $reg_exUrl = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/"; if(preg_match($reg_exUrl, $text, $url)) { return preg_replace($reg_...
asked by 10.11.2018 / 03:46
2
answers

how to interpret a string as a php variable

I intend to do this: echo $.'variable'; as a result of this: //Solicitamos a la BD todas las id de la tabla categorias $data = $this->Global_model->get_select_array('idcategoria', 'categoria_tmp', TRUE); //rastreamos to...
asked by 09.11.2017 / 21:50
1
answer

Python: Error: "function" object is not iterable

I am doing a program that opens a txt, it loads several fields: IDquestion, Question, Answer, AnswerDate and At. In the txt the fields are separated with a "^". I have an error in a function called "Savevalues", to which I associate a button. Wh...
asked by 12.04.2017 / 17:51
1
answer

Stack overflow in the following program

you will see, we have a project for class in which we have to work with functions and there are different functions for each utility of the program, convert from binary to decimal, hexadecimal ... etc. The fact is that the functions correctly do...
asked by 24.02.2017 / 20:43
2
answers

First letter of a word in C

I need to make a program that takes out the first letter of a word through a function in C, without using characteristics of Arrays. I have this code: #include <stdio.h> #include <string.h> char dimeLetra(char[]); int main(){...
asked by 21.10.2018 / 01:15
1
answer

The split ("") method of an array returns the messy array

I want to save the value of a text area in an array and I am doing it with a let array = texto.split(" ") , but when doing console.log(array) it returns it messy. What can I do? Here is the code: let t_Area = document.que...
asked by 19.09.2018 / 01:13
2
answers

Problem with functions - Find item in a fix

How about, very good day, I've been starting to program, and I've had a problem with a program regarding functions. It turns out that they ask me to make a program that stores elements in an array, and then asks the user to enter a number to...
asked by 14.12.2016 / 00:16
1
answer

Doubt about Kotlin language

Why and for what the function main is written in the following way: fun main(args: Array<String>) { println("Hello, World!") }     
asked by 27.10.2018 / 02:53
2
answers

Create mysql function on repeated dates

I need to create a function which takes the dates of a table and if there are 2 repeating ids, it takes the most recent date. For example: Usuario_ID|Video_ID|Fecha 11 |1 |2018-05-12 11 |1 |2018-05-13 11...
asked by 20.07.2018 / 03:09