Questions tagged as 'javascript'

2
answers

Display content depending on the URL

I am creating an error page that works in 2 languages. The idea is that by default show a <div="404-spanish"> with a URL of the type: www.jonathancenteno.com/estapaginanoexiste . However, when the URL appears / in /, the idea would...
asked by 16.07.2018 / 14:25
1
answer

Sort a Object (JS)

I have an Object with the following structure: [ { titulo: '', id: '', imagen: '', fecha: '' }, { titulo: '', id: '', imagen: '', fecha: '' }, { titulo: '', id: '', imagen: '', fecha: '...
asked by 05.04.2018 / 17:16
1
answer

Change properties with a range slider

Hi, I would like to know how I can change the size of a div gradually with a range slider. Thank you very much.     
asked by 06.04.2018 / 16:39
1
answer

Jquery dependent values in several rows

I have a button that adds, on the one hand, a row in a table with fields to fill. Also, with the same button, a row is added to another table, where some dependent data of the first table is completed. The problem is that when you add two rows o...
asked by 05.04.2018 / 20:09
1
answer

Export script to Excel

Hello, I have this script, I would like to know how I can modify the title of the file that it generates. <script type="text/javascript"> function fnExcelReport() { var tab_text="<table border='2px'><tr bgcolor='...
asked by 13.03.2018 / 11:56
1
answer

How to fill an object with array properties?

Hello, I have a component in React that has a state type object: items: {} and my goal is to fill it with properties type fix. Example if input into a input a value is created: items: {Cat []} and if then input another value is created items: {C...
asked by 13.03.2018 / 18:04
1
answer

How to prevent obstacles from accumulating each time you lose the game

I want to know how to do so when you lose or win as you see there, make a new random of obstacles but do not accumulate those that you had before , something else, there is some better way to do When I win or lose more efficiently? There is a l...
asked by 03.03.2018 / 14:00
1
answer

How to respect the format dd / mm / yyyy?

I want to store a date to which certain days were added, with the function setDate() , Example: 28/02/2018 + 1 day = 01/3/2018 . So add a if and add the 0 but at the time of storing it does not work fecha_te...
asked by 01.03.2018 / 04:46
1
answer

group json according to data

Hi, I hope you are well, I have a problem which I can not solve. having the following json I want to group by ** state * to then create a new example: [{ "area": "YUMBO", "state": "NOT" }, { "area": "ZARZAL",...
asked by 01.03.2018 / 02:48
2
answers

Paginacion en JQuery

My website will be based on doing activities and every time you finish an activity you will automatically be asked which NickName you want to appear on the Results page (where the Nick will be, what activity it is, the note and the date)....
asked by 28.02.2018 / 23:43