Questions tagged as 'javascript'

1
answer

When compiling for Angularjs4, the page stays in "Loading ..." with "ng build --prod"

I'm learning Angularjs4, while I'm trying code everything is fine, that is, executing    ng serve The problem arises when I try to compile the project for production, the sentence that I execute is the following    ng build --prod...
asked by 01.08.2017 / 05:21
1
answer

Get the value of aria-label using an element

I'm setting up Disqus comments on my blog, but I have some problems with AMP templates. To configure Disqus I need an object that has two variables that I filled using Django, like this: var disqus_config = function () { this.page.url = '...
asked by 01.08.2017 / 06:50
1
answer

Auto height iframe javascript

I have a problem, I am creating by JavaScript a iframe var iframe = document.createElement("iframe"); iframe.src = 'web.html'; iframe.scrolling = 'no'; iframe.style.width = options.width; iframe.style.border = 'none';...
asked by 31.07.2017 / 06:23
1
answer

Why does not the function run on the first click in this case?

What I try to do is that the last image is put at the beginning when you click on the button, but the button only works from the second click, what is my error? function click() { var button=document.getElementsByTagName("button")...
asked by 04.03.2018 / 20:42
4
answers

Change css using js vanilla

I am trying to change the dimensions of a div by modifying the css of it by the DOM model of JavaScript . var mi_div = document.getElementById("prueba"); var get_width, get_height; get_width = mi_div.offsetWidth; g...
asked by 30.06.2017 / 19:41
1
answer

Problem inserting the data array for google maps bookmarks

I have a table html that is created with a php calling the database Example: <table> <tr> <th>id</th> <th>Name</th> </tr> <?php $query = "select id, name from pizza"; $result = $con...
asked by 24.06.2017 / 19:23
1
answer

DataTables with English language and semantic-ui

I'm trying to implement this tool that I found absolutely marvelous: Data Tables + Semantic UI Now, download the js and css reference, and I still see the parts of the table in English. I want to clarify that I edited the file jquery.dataTa...
asked by 30.06.2017 / 14:43
3
answers

Return values to Select with javascript, remove put options

Greetings I have this code, which removes the options to all the other select when one selects it first. But now I need to return the value to select another one. Among them, for example, if I select the 1 in any, option 1 will disappear in t...
asked by 21.06.2017 / 16:33
1
answer

add dynamic input and select

hello friends I have a .js file which allows me to add dynamic rows and it works perfectly, but my problem arises that I am now using 1 input and 2 dynamic select that load values from the database, as I would have to do add those two select in...
asked by 22.06.2017 / 19:09
3
answers

Keep the countdown in Forms

I have the following code, which puts a chronometer in countdown and sends the form the data you have to the BD but the problem is that the users to update the web page, the timer returns after 2 minutes. There is some way for the relog to keep...
asked by 26.06.2017 / 18:05