Questions tagged as 'dom'

1
answer

"less than" value is removed

Hello, I made an application to run locally in PHP, but I'm trying to give an increment, so it's faster. I am not a programmer, I made this application, seeing some examples on the internet. I have this part of a code that you get after picking...
asked by 05.11.2017 / 19:34
3
answers

Why use getElementById if the id is in the window?

Recently in my study I noticed an object that manipulated the DOM of the element that had the same name in its id . teste.style.border = '1px solid #CCC'; teste.style.width = '500px'; teste.style.height = '50px'; <div id="teste">...
asked by 13.04.2016 / 14:23
1
answer

Problems with contact form 7 - function on_sent_ok obsolete

I have some forms using the plugin contact form 7 and each one redirecting to a specific success page, I used on_sent_ok, however he does not want to run I went to check and found out that it is obsolete and the correct one now is to use the gif...
asked by 13.09.2017 / 17:20
0
answers

JavaScript DOM Parser incompatible with document?

My idea with DOM Parser was to load HTML layouts, put them in a single element, and then use them when needed. But in tests, the object generated by DOMParser is not added to the document. Here's the example I did in JSFIddle: H...
asked by 19.06.2017 / 15:39
1
answer

Get attribute value PHP DOM [closed]

I'm trying to make an application to grab certain values from a page and insert them into a page of mine. I do not know how to program, but I'm still risking it, because it's to improve my job (bid analyst). So far I have managed to get one of t...
asked by 28.01.2017 / 23:20
2
answers

I can not clean list of li elements that is generated dynamically

I have a dynamic list generation, so I'm adding li through input text . I have a button to clear all the entries of li and this is his code: function removeTudo() { listaCompleta = document.querySelector("#listaCompl...
asked by 15.12.2016 / 23:09
0
answers

document.getElementById does not find element manually inserted into the DOM

Hello, I'm having trouble getting an element through the id of a Class with document.getElementById(id) of DOM using Javascript I have a panel style in css #painel { text-align: center; position: absolute;...
asked by 14.05.2016 / 05:33
1
answer

DomXPath find element with exact name

I'm having a problem trying to find an element with the exact name. <? //... @$DOM = new DOMDocument; @$DOM->loadHTML($html); @$finder = new DomXPath($DOM); foreach($finder->query("//a[contains(@title, '".$info[$i]."')]") as $link){...
asked by 12.01.2016 / 14:29
1
answer

Get value from a Span field with cURL Parser

I have a question and a problem. Well it's the following with cURL I login beauty up so far .. ok but I need to get some information that is inside the html: <span id="Number">12345678993</span> <span id="holderName">RAFAELA...
asked by 05.02.2015 / 21:21
2
answers

Modify an HTML element or a native browser function

Next, google chrome supports <dialog> and its showModal() and close() functions. However, some browsers do not support it. I made a simple script, which checks if the browser is different from google chrome, and if so,...
asked by 19.06.2018 / 03:30