dom

XML parsing in Android

Please tell me, I need to parse a simple XML'ku vida: <?xml version="1.0" encoding="UTF-8"?> <result> <statu ... easier? Mb is there some simple class for parisng? Somewhere I saw an analog of php'shnoy simplexml, but now I can't find it

jQuery DOM-add, remove nodes

There is no way to implement such a task: when you click on $("div.block") , a new element <div></div> should app ... 't figure out how to add an element; more precisely, I can't figure out how to get to the element from which it can be added.

Java: xml Parsing [closed]

Closed. It is impossible to give an objective answer to this question . Answers to it are not accepted at the moment. ... I want to see the simplest and most compact xml parsing algorithm in java. Any libraries, classes. m?

How do I change the placeholder-a color via javascript?

Hello everyone I have an input, how can I change the color of placeholder-a when the focus is on input? Do something like whe ... But now there is a problem, I do not know how to work in javascript-e with pseudo-classes. Is there a solution? Who faced it?

Remove some elements of the Simple HTML DOM parser page

Greetings to all. There is a page structure like this: You need to remove all the "tr" elements that go after the zero. ... imple HTML DOM parser? Sketches: foreach($html->find('tr') as $value) { $value->outertext = ''; }

What is the difference between a jQuery object and a regular DOM element?

Explain it in a popular way. Links are a slippery topic. She never fully opened up to me. What is the difference: this - элемент DOM $(this) - объект jQuery

What does the folder structure of a multi-page site look like?

How in my head is it all: in the root, create the pages folder and create folders with the page name in it and already in th ... even less than half similar to all the others? That is, even if the pages are slightly different, then create separate kss?

Syntax error in file name, folder name, or volume label

Guys, please tell me how to specify the path to the file so that it does not swear? FileNotFoundException public boolean ch ... rException e) { e.printStackTrace(); } } return false; }

Please give an example of how to use JS to find the text on the page to get the class of the parent object

On the page there is a "search text", the output should be an object (variable) with the class "parent element" example code ... "контейнер2"> <div class="контейнер3"> <p>искомый текст<p> </div> </div> </div>

Checking for the existence of an element

Hello. The page contains a link with id='offers' When you click on this link, it should load div with class='ajax_block'. Pr ... x({ url: 'offers.html', success: function(data) { $('.ajax_block').append(data); } }); } });

Error " FAILED to execute appendchild on node parameter 1 is not of type node"

this.onload = () => { let can = document.querySelector("#can"); for (let i = 0; i < 80; i++) { let c; ... to a class can, but the error{[4] is displayed]} FAILED to execute appendchild on node parameter 1 is not of type node

Enter words in input in English or Russian, depending on the condition

There is a input. If the value is div===RU, then you can enter any words in Russian(lowercase and uppercase), including space ... едите название города" name="city"> <button class='find'>find</button> <div class='lang'>Ru</div>

How getElementById works

Guys, the question is this. There is a code <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ... (), please explain why so or give a link to the article, and if you know how to solve this issue - tell me))) Thank you all!

How do I create an array of DOM elements?

I need to create an array of the class .tab_p, then get each of them the height and assign all the elements of this class the ... ue of the first element (275px) is entered in the new_height variable, hence all the elements of the class .tab_p get 275px.

PHP Simple HTML DOM Parser how do I get to go to the full news script?

Please help me, please.. The problem is that I get an array of links, if you click on which will be the full news, but how t ... } // Здесь переменная $articlesInfo содержит всю информацию о всех статьях. // ----------------- Сама программа.

How to use js to write styles in css?

There is a way to apply inline styles via the style internal object of DOM elements. It is possible to apply styles in a different way by replacing the class, so that these properties can be written in css or something like that.

repeatedly clear the div from dynamically generated content created by jquery

Good afternoon, I ask for help from the community, because I myself, something like I can not find a solution. In the editor ... (at this stage) or is displayed once in the structure. In any case, it is clearly possible to manipulate it somehow. But how?

Delete the text of the first child without affecting the other tags

вот пример https://jsfiddle.net/9hdxbjcy/ you need to remove the ratings near the comments without affecting the ratings butt ... jsfiddle.net/jamesallardice/UK9xU/ It seems to work,but I don't understand how to fix it so that it works without jQuery.

Tag content change event

Is there an event in JavaScript that occurs when the tag content changes? For example, when changing the content of <div></div>

Submit event and event handler

Is it possible to use a custom handler to perform validation when the submit event appears on the form? I read it on the foru ... m'); elementForm.addEventListener('submit', somefun); </script> </body> </html>