Scraping specific text from a webpage using xpath

I've searched and tried multiple ways to get this but I'm not sure why it won't find most of the information on the webpage. Page to scrape: https://m.safeguardproperties.com/ Info needed: Version number for PhotoDirect for Apple (currently 4.4.0) ...
more »

2017-10-04 23:10 (1) Answers

Undefined global variables

I know that this question may be a "dumb" one but just forgive me for this :( I was doing a quiz-time application but just got a problem :( my two global variable are not defined which are "score" and "solvedQuestions" although there's no variable h...
more »

2017-10-04 22:10 (0) Answers

Finding all prices from Aliexpress

iam working on browser addon which recalculate prices from USD/EUR to CZK. It mostly work, but not at every single price. Iam parsing source code, picking tags with word "price" in class or itemprop, but not every price is marked like this. Simply i...
more »

2017-10-04 21:10 (0) Answers

Adding a <li> to a <ul>-object in javascript

I'm trying to create a function in which a user clicks a button in order to add an item to an unordered list of items (without using jQuery). This is my js code: window.onload = function(){ document.body.addEventListener("click", function(...
more »

2017-10-04 13:10 (2) Answers

CSS hover not working after JavaScript Dom

So, I was just making some tests for a little menu idea. The idea is just to have a little dot in the top left corner of the screen. When overing it will have a box shadow that make it look bigger, on click it will expand (width: 100%, height: 100%),...
more »

2017-10-03 23:10 (2) Answers

Handling several DOM elements in Angular4

I'm building a SPA in Angular4/typescript. I have several javascripts which manipulate DOM (add/remove CSS classes) which I want to integrate to the application. What is the best way to do it? Currently the structure of the application is the followi...
more »

2017-10-03 23:10 (1) Answers

css selector - get the value

What is the css selector to get the text value '2017-10-09' ? <div class="col-xs-6"> <strong> <!--ko text: date --> 2017-10-09 <!--/ko--> <!--ko text: time --> ...
more »

2017-10-03 12:10 (2) Answers

JQuery conditional handler

I need to select a li element based on a "aria-selected" attribute that is affected to this element after its initialization by a plugin (specifically, it's a JQuery UI tab element, I want to handle the click on "selected" tabs, and those tabs are ad...
more »

2017-10-03 07:10 (3) Answers

saveSnapshot does not work after modifying the DOM

I have a web site with inline CKEditors, on which I modify the HTML DOM with javascript and then try to fire the saveSnapshot event to save the modifications to the server. And here's the tricky part; if I make only one DOM change (remove an element)...
more »

2017-10-02 23:10 (1) Answers

Change color of a input value represented as text

I created a interest calculator and i want the money amount and interest to turn to color green and not the whole text string. So far I've tried with different type of dom manipulations, but haven't been successful in singeling out these two values...
more »

2017-10-02 22:10 (1) Answers

Angular Rendered2 removes first element

in other question Angular4 Rendered2 remove label text on addClass method But in this new one, I can not explain why remove the first element. This is my code for add validation messages: const input = this.Render.selectRootElement('[id="mergePass...
more »

2017-10-02 19:10 (1) Answers

JQUERY DOM: Select Elements Created After Dom Load

I am working on a project where I need to change the value of all select inputs of a certain class when a function is called. The problem is some of the select inputs do not exist when the dom is first loaded, they are created dynamically via Javasc...
more »

2017-10-02 16:10 (1) Answers

Html pattern matching event

Is it possible to call some javascript function instantly once the pattern is matched in input field? Is there any specific event for that? <input type="text" class="form-control" name="zipcode" pattern="^[1-9][0-9]{3}\s?[a-z|A-Z]{2}$" (keyup.ent...
more »

2017-10-02 11:10 (1) Answers

How to make out of an HTML text a DOM object

I have an app where a page generator creates a start page that is saved in the database. The saved information is just the outerHTML of the DOM object. To create the edit function, I need an inverse function that recreates the DOM object out of the H...
more »

2017-10-02 08:10 (3) Answers