Questions tagged as 'dom'

1
answer

What is the difference of NodeList for HTMLCollection?

I was reading a code when I came across the following question, would you like to know if anyone could enlighten me?     
asked by 27.05.2014 / 13:14
1
answer

view HTML element placed on page using DOM - Javascript

Class Piso and class Consola /** * Classe Piso * contem um numero piso */ function Piso(id) { this.id = id; } /** * Classe Consola * contem uma lista de pisos */ function Consola(nome) { this.nome = nome; this....
asked by 06.05.2016 / 18:59
1
answer

div.childNodes.item (0) recognizes tab or space as child

I use Ubuntu 13.10 and I know few HTML editors for it. The editor I use is the bluefish, which has helped me a lot. I'm learning javascript from w3shcool and I'm currently in the DOM nodes part, and as it's a bit more complicated to understan...
asked by 21.06.2014 / 15:38
1
answer

PHP Regex remove IMG attributes and change SRC

I have the following string with html : teste = "<img src="image/teste.jpg" alt="" width="32" height="32"> <p>teste</p> <img src="image/teste2.jpg" alt="" width="132" height="132">"; I would like a regul...
asked by 19.08.2015 / 16:50
1
answer

Taking a single value for PHP

$ch = curl_init('site'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/6.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3"); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);...
asked by 18.12.2014 / 22:11
2
answers

Attach .js file into another .js file

It is the following: I have an index.html page where the user selects a certain amount via input radio. Clicking on GENERATES a function where document.write creates a form according to the value previously selected by the user. That is, y...
asked by 16.02.2015 / 16:48
1
answer

How to apply opacity on a DOM element - createImage (); - through a javascript editor?

I'm using p5.js - a javascript library - to capture images from a news API. I would like these images to be superimposed, but opaque, so that the images blend. I'm not able to apply direct opacity to the javascript code. I can change the posi...
asked by 22.06.2018 / 13:36
3
answers

How can I display any JavaScript object as a string?

If I have any object like new MeuObjeto() , and I want to display all its internal properties as string. How can I do this? When I use alert(new MeuObjeto()) the result is [object Object] . But I want the content of the obj...
asked by 03.08.2016 / 16:21
2
answers

Calling function with onclick

I can not call a function using onclick, calling it straight from the html tag comes normal but if I call it non-obstructive way no chance I already read several docs I tried in ways and nothing anyone can give a light. document.getElementById...
asked by 31.03.2014 / 21:37
2
answers

Knowing when you hear changes in DIV with Javascript

Hello, good morning. I need to compare a change in the DIV1 daughters so I can make a notification. This way I did may not be the best, I'm still learning. <div class="div1"> <div class="filha"> <...
asked by 16.04.2018 / 14:49