Questions tagged as 'html'

1
answer

How to apply a function to multiple objects? (Pure Javascript)

For example, I have div inside a variable obj obj = document.getElementById("objeto"); I want a function to be applied to it, so window.onload = function(){ window.onclick = function (){ obj = document.getElemnt...
asked by 10.07.2014 / 18:42
4
answers

Increasing modal size using bootstrap and html

I have a certain modal responsible for displaying some content of the site, however the content can not fit the modal screen, it always stays the same width regardless of the content ... how can increase the size of a modal? code being used...
asked by 08.03.2017 / 18:59
1
answer

Error when trying to extract table from a site by R, how to solve?

I'm using this code, I want to import the country table into the R: library(XML) url <- "http://en.wikipedia.org/wiki/List_of_countries_by_population" country_data <- readHTMLTable(url, which=2) R returns the error: Error: failed to...
asked by 22.02.2017 / 20:56
2
answers

Child element margins leaking to the parent element

I did not find in the community anything that clarified my doubt, so let's go! In the example below, I do not know why water loads, the margin property of the elements p and h1 exceed the limit of the parent element....
asked by 06.10.2016 / 16:04
1
answer

How do I access elements of an iframe from an external page?

I need to access an id that has inside an external page that I'm rendering in an iframe on my site. Permission error is occurring. How do I resolve this? This is the link on the page: link Fiddle: link Observe my X-Frame-Options....
asked by 20.05.2014 / 17:27
2
answers

How to make a span display the value of a range as it moves it with the mouse? [duplicate]

The function is working, however I want to update the value in <span> as I move with the mouse. Can anyone help? function mostrarPorcentagem(novoValor) { document.getElementById("exibePercent").innerHTML = novoValor; }...
asked by 13.01.2017 / 16:44
2
answers

How to sum all the elements of an ng-repeat? [duplicate]

Example: I have a ng-repeat any, which repeats each a number. How do I store a variable that is equal to the sum of this number of each repeat? Angular CodeJS: ngular.module('meumodulo', []) .controller('mercadoria', function($root...
asked by 27.09.2017 / 13:44
3
answers

Do not my page accents appear?

I created a html page, however the accents are not being read, I already tested the following code but it does not work. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> What can I do then?     
asked by 19.09.2017 / 16:18
2
answers

Clone select jquery / javascript

I'm a beginner, and I'm having trouble running this code I used from another topic from here ( Add and Remove fields with Javascript ). Here he did not run, but in my localhost he even clones the requested snippet but does not just show sele...
asked by 21.09.2017 / 22:11
2
answers

HTML DOCTYPE declaration

By the W3C standards we should declare: < ! DOCTYPE html > , but I saw on a website that they declared only this: < ! DOCTYPE > , the semantic value is lost or the browser reads the file normally as HTML5?     
asked by 04.09.2016 / 05:29