Questions tagged as 'javascript'

1
answer

How to show data with Vue-resource in Tabla Boostrap Vue?

I want to show only some data of the following json: link In a Boostrap-Vue table it is assumed that I have to export the data but it is not displayed. My code is as follows and I just want to show certain information such as first and l...
asked by 31.01.2018 / 22:44
3
answers

Problems with PHP routes

I have the following codes: I have my index.php <!DOCTYPE html> <html> <head> <?php include('includes/head.php');?> </head> <body> <?php include('includes/navbar.php');?> <?php includ...
asked by 26.01.2018 / 20:43
1
answer

Repeated letter contained within the JavaScript String vector

Good afternoon, how could I do so that within a String array I can detect which letters are repeated within themselves? For example, if I have the contained vector = ["hello", "piano", "triangle"]; can return an array result = ["o", "a"]; whi...
asked by 25.01.2018 / 22:33
2
answers

Retrieve label value using jQuery

I have the following line, I am using this to know the id but it gives me empty $(document).on('click', '.editRuta', function () { alert($(this).find('.id').text()); }); <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.c...
asked by 17.04.2018 / 04:29
2
answers

Divide arrays knowing the length that needs to be obtained

I am making a request through a API of the NASA , to obtain information, but the data returned through this is long, because each corresponds to each day of the year. It depends on the year, whether it's a leap year (366 days)...
asked by 16.04.2018 / 03:20
3
answers

Convert an array to a string

I have this array [12, 13, 22] but I need to remove the brackets and spaces. You should print the following: 12,13,14     
asked by 15.01.2018 / 00:43
1
answer

Question about methods and classes in Javascript

My question is: To call the client method and total it is not necessary () since they are methods, but why to print if I need parentheses? If it is because it is a normal and current function, why can not you put function in front? class...
asked by 13.01.2018 / 11:56
1
answer

Problem when traveling the json obtained with ajax

I have this code HTML to consume JSON by ajax , but it does not show me the data I want to bring. Can you tell me what I'm doing wrong? The url of JSON is this: link * This is the script that t...
asked by 09.01.2018 / 18:17
1
answer

How to do so that with fadeOut the div does not disappear?

Good morning, my problem is that when the word hello disappears, the world comes to occupy the place of hello. Is the div deleted when using fadeOut? How to make this not happen? <!DOCTYPE html> <html lang="es"> <head&g...
asked by 15.12.2017 / 20:50
1
answer

get value of a select from a jquery

good evening I have the following script: $(document).ready(function() { $.ajax({ dataType: "json", data: [], url: "https://ubicaciones.paginasweb.cr/provincias.json",...
asked by 14.12.2017 / 05:21