DOMNodeList::getAttribute is undefined

Im tryin to run this code but php throws: Fatal error: Call to undefined method DOMNodeList::getAttribute() in path/to/feature-manager.php This file contains html //features.php <div class="col-md-4"> <div class="feature"> ...
more »

2017-08-19 17:08 (1) Answers

How to extract elements inside of a <pre> tag

As a coding newbie I'm following a tutorial on the map function which gives this example As a datasource we'll use HackerNews' big RSS feed and since we can treat RSS as > plain HTML, it's very simple to get started: var titles = document.getEl...
more »

2017-08-19 14:08 (1) Answers

kotlin-js extending kotlinx html classes

I have tried to learn the Kotlin language this week and wanted to make a simple class that acts as an html element. At first, I saw the org.w3c.dom library's "HTMLElement" and its chidlren, but extending those is more of a pain than anything I have ...
more »

2017-08-18 11:08 (0) Answers

How to show list dom revered in vue js?

I want to show my vue js list in v-for reversed on dom. Object should not be change. Just created reversed list by v-for. HTML default list is top to bottom, I want to append items from bottom to top in dom. You can see telegram web messages list tha...
more »

2017-08-18 08:08 (1) Answers

Tree structures in WebKit (Chrome)

Web browsers make many trees when navigating web pages including DOM, CSSOM, Render, Layout trees. (Does Layout tree exists? Or does the Layout tree just a concept which amounts to being the concept of a rendering tree with a layout property?) I'm i...
more »

2017-08-18 06:08 (0) Answers

JQUERY $(this) returns #document

that's my sample code: $(document).ready(function() { $('.hide-me').click(() => { $(this).css('display', 'none') }) }); I really can't explain why $(this) returns [document] or this returns #document and not the $('.hide-me') element o...
more »

2017-08-18 05:08 (0) Answers

SVG vector changing fill not working

I'm trying to change fill color on my SVG file. But no one from methods is working. I was trying a lot of, but I can't even get object which I want to. <object type="image/svg+xml" data="map.svg" height="500" id="world_map"> Your browser ...
more »

2017-08-18 01:08 (1) Answers

How to add a child to a DOMElement?

I'm trying to add a child to a DOMElement via PHP. I've already built a DOMDocument object but when I try to add it as a child to a DOMElement I get an error. The code is the following: $aux = new DOMDocument(); $figcaption = $aux->createEle...
more »

2017-08-17 22:08 (0) Answers

How can I fix this NullPointerException?

What really causes this Null Pointer Exception (java.lang.NullPointerException) and how can I fix it please ? This is the code I am using : package file.people; import*; import org.jdom2.*; import org.jdom2.input.*; import org.jdom2.filt...
more »

2017-08-17 18:08 (0) Answers

Get element in jQuery

How do I get every td in a row of a table? HTML <table> <tr> <td> <td>Second td!</td> </tr> <tr> <td> <td>Another second td!</td> </tr> jQuery $allrows = $("...
more »

2017-08-17 17:08 (4) Answers

get Id out of an array and toggle it

I am trying to build an "auto toggle". My plan was it to do it with an loop. The array[i].onclick works so far but I can't get further to the toggle animation. function setContentBox() { for (var i = 0; i < jArrayText.length; i++) document....
more »

2017-08-17 13:08 (1) Answers

how to set answer to image in javascript quiz game

This is a simple javascript quiz but i want to add images only as possible answers and correct answers so ex the user clicks liberia image its the correct one I tried fetching img src so i can set it in the answer array as text All i want is to put...
more »

2017-08-17 11:08 (1) Answers

Dom Navigation using Javascript

How can i access 3rd Element(H2) starting with the parent element "id="services-list". Iam currently accessing using the below method.Is there a better way to do apart from the below. Please see i need purely Javascript. var z = document.querySelec...
more »

2017-08-17 08:08 (3) Answers

can't find DOM index of blurred object

I have inputs laid out in tabular form. When a blur event occurs, I want to get the index of the blurred element. When I try, I always get -1 (not found). html: <div class='table'> <div class='tr'> <div class='td'> <inp...
more »

2017-08-17 00:08 (2) Answers

JavaScript Caching DOM elements weird error

I am having trouble figuring out why my code will only work after I have made a call to get a document element that isn't stored in a variable. I am trying to store some DOM references into variables but my code won't interact with the DOM unless I p...
more »

2017-08-16 23:08 (1) Answers

How to run a code on a variable's value change?

I have an animation (created with pure javascript) and a variable whose name is animationState. When the animation is On the value of the variable is true and when it stops or is off the value of the variable is false. When the animation stops and t...
more »

2017-08-16 22:08 (0) Answers

VBA html tag text query without inner tag

There's such html: <h1 class="title">NOW ZINC PICOLINATE 50MG 60caps CYNK PIKOLINIAN <small>(6826446676)</small> </h1> I want to get only this: "NOW ZINC PICOLINATE 50MG 60caps CYNK PIKOLINIAN" When I use: HTMLDoc.getEl...
more »

2017-08-16 18:08 (1) Answers