Questions tagged as 'javascript'

2
answers

can you change the url of a link?

What happens is that I have a link already created from the beginning <a href="/urlParaCambiar"> link and then I mark a checkbox of several checkboxes and I want to modify the url of the link, adding the value of the checkb...
asked by 15.04.2017 / 05:39
3
answers

Select objects within an array - Javascript

to see if you can help me, I just start with JS ... I need to access within the array and the "cost" objects to make the total average cost. var foods = [ { id: 00, name: 'sausage', from: 'Spain', cost: 160, gluten: false }, { id: 01,...
asked by 18.10.2018 / 11:32
1
answer

Access the attributes of a web framework

I want to access the attributes that are loaded in a <iframe> , but I get this error:    Error: Permission denied to access property I understand that it is because of the crossing of domains, but I do not know how to solve it...
asked by 29.01.2017 / 23:36
1
answer

Javascript: initMap is not a function

Greetings again. I've been trying to load a map through Google Maps and it just does not show me. I run the console and I get the following message: Uncaught InvalidValueError: initMap is not a function I leave the code I'm occupying: Ma...
asked by 23.05.2016 / 17:02
2
answers

Iframe to load a preview of an office document

I am creating an extranet and the .doc .xls .ppt files are loaded and saved on the server in a folder ./folder/test.doc and on the extranet it is already shown that this file is registered, now the subject is that in an iframe only display the p...
asked by 04.03.2016 / 23:48
3
answers

retrieve attribute value data-id from html button and bootstrap [duplicated]

I have a button in each row of a table with the data-id attribute which is different from the other rows <button id="btnCancelar" class="btn btn-warning" data-id="@item.facturaCancelacion">Ok</button> in a JS file I have a cli...
asked by 08.07.2016 / 00:58
2
answers

How to change the value of a button once clicked?

Good morning, I'm just starting with javascript and it's costing me a little ... What I want to do is that when I click on the button it changes its value, but I do not understand the error: <!DOCTYPE html> <html lang="es"> <hea...
asked by 23.11.2017 / 13:18
2
answers

Make a variable not reseateable

When you called a function and it has variables declared inside and you call the function again, as for example in a recursive function, the variables inside are declared again, and my problem is, How can I make a variable NOT restart? , by t...
asked by 17.11.2017 / 14:48
5
answers

Recursive factorial

Trying to do the factorial recursively in Javascript, I get 2 different errors, why does this happen? and how should it be done? ( According to my code ) /* 1ra forma */ function f1(n){ // Maximum call stack size exceeded if(n &l...
asked by 23.10.2017 / 18:56
5
answers

Adjust Columns of 2 HTML tables

Currently I have 1 table (html) with 2 tables (html) whose problem is that when displayed on a small screen the headings are mismatched with the table My table (example): <table width="100%" > <tr> <table width="100%" >...
asked by 07.08.2018 / 19:40