jQuery: How to get a clicked elements id

So i'm trying to get the id of a clicked element, actually a div. My code looks like this: $(document).ready(function() { $(".photo").on("click", function () { console.log("Clicked"); var id = $(this).attr("id"); console...
more »

2017-06-22 23:06 (1) Answers

Angular Break, Migration to 4.1.3

I am reworking one of our angular services in the midst of an update to angular 4.1.3 We used BroweserDomAdapter before but that has seen been deprecated by the angular team, and I am struggling to figure out what the issue is after rewriting it. ...
more »

2017-06-22 20:06 (1) Answers

Javascript output as value of hidden input

How can I set the ouput of this javascript function as the value for a hidden input on a html form? document.write(states[i][1]); works fine but I cannot get it to fill in the value with the code as shown below. if (to == 'abbr'){ inp...
more »

2017-06-22 07:06 (5) Answers

Cant change DOM element in Node JS? Jsdom?

I am incredibly confused - new to Node JS here. I am trying to change a DOM element (by class, name, etc) within index.js, my Node js main file. I read the docs on the module jsdom that supposedly can get/change elements in html, because in node th...
more »

2017-06-20 21:06 (1) Answers

Error during loadHTML file

I'm developing an app that should load a web page and save a data present in the second row of the second table. This is my code: $dom = new DOMDocument(); if ($dom->loadHTMLFile('http://www.temis.nl/uvradiation/nrt/uvibare.php?lon='.$this->_...
more »

2017-06-20 14:06 (0) Answers

how to append child node using XML with HTML DOM

I have XML parameters at below ; As you can see, the are two "Gateway" node. first one has interface Internal, second one has interface Uplink. I want to add new IpRange, StartAddress and EndAddress child node. But first of all i need to find Gatew...
more »

2017-06-20 12:06 (1) Answers

simple html dom get content inside span id

the code below returns nothing, for some reason if I echo the content of col-5 class I get everything but the rate. can someone tell me a way to get the exchange rate in the span id #noncash-currencyWantRate $html = file_get_html ('https://online.ro...
more »

2017-06-19 22:06 (0) Answers

Javascript history object - Why doesnt this work?

This code is basically supposed to create a paragraph element that displays the numbers of websites in the users history list. Can someone decipher what is wrong with this code please? thanks. var websites = history.length; var history1 = docu...
more »

2017-06-19 12:06 (0) Answers

Java Struts Generate multiple files

I have problem with my struts application. I want to generate multiple xml files in base of some sql query. Function is generating files per currency and as you see in code i.e. if I have 3 currency I should generate 3 files. Function GenerateXSLActi...
more »

2017-06-19 11:06 (0) Answers

how to make for/foreach loop between spans ?

I have website. I am getting data from website with WebRequest. After that, I need Tags in this website. but every page has a diffrent tag number. some pages have a 2 tags some pages have 3-4-5 etc. my question is how can I take these tags. these a...
more »

2017-06-19 11:06 (0) Answers