Questions tagged as 'dom'

0
answers

php sun replace tags

Hello friends, could you help me? I have this html code <div class="media_embed"> <script height="" width=""> (function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s...
asked by 26.06.2018 / 21:45
0
answers

Change an image with JS after it has been loaded with angular?

I'm trying to do a chrome "snippet" to change the images of a page created with angle. I am trying unsuccessfully with: this.src=origen+res[res.length-1]; this.setAttribute("ng-src",origen+res[res.length-1]) But by not acting on the "rea...
asked by 13.06.2018 / 16:48
0
answers

Get the document from an iframe

I'm trying to get the document from an iframe that is being loaded from the same server but what I get is a about:blank // node es el iframe var iframeDocument = node.contentDocument || node.contentWindow.document; console.log("IFRAME...
asked by 08.06.2018 / 00:50
1
answer

Rebuild html elements with the data stored in a json?

I have a json object created with the tags and attributes of the html elements. Now that I have the json I want to rebuild the entire html running the json. Any suggestion would be of great help to me.                                <d...
asked by 23.05.2018 / 04:43
0
answers

Modify JS node content by DOM

I am trying to change the content of an element by DOM. I've been doing some research and discovered the replaceChild property  that allows me to change nodes (the existing one with a new one with my text to be introduced) but of course, whe...
asked by 18.05.2018 / 21:13
3
answers

How can I traverse an array with ngFor nested angular 5

Surely they will say that it is something very easy to do but I am trying to go through the data array in this way <tr *ngFor="let list of listadoRangosPivot; let i = index"> <td class="text-right">{{list.id_tercero_fk}}</td...
asked by 15.05.2018 / 23:38
0
answers

Insert reading of a scanner in input type = text?

I am developing a mobile application where the form registers information but I have a scanner field that opens the camera and scans me. The problem is that it does not return the value of the reading, which is the numbering, it does not return...
asked by 15.04.2018 / 21:31
1
answer

Problem loading page with synchronous ajax - asynchronous

I have a problem that I do not know how to fix. I load a php page with ajax in a DIV and within that page I load some tables with ajax as well. Everything here is correct and works but there is a problem, which is that I load the page and the...
asked by 13.04.2018 / 11:50
0
answers

Web Scrap PHP does not work with a link

Hello everyone, I'm scraping a page with the following code: <?php require('simple_html_dom.php'); //Libreria $url = "https://www.exito.com/products/MP00550000000204/Televisor+LG+Led+43+Pulgadas+Full+HD+Smart+TV+43LJ550T"; //Link del produc...
asked by 26.02.2018 / 02:36
1
answer

Generate a result for each document.getElementById

I have the following code js that does the following: Shows in an orderly fashion what it recovers from an array in a select but I do not know how to make print on it if the selected product is solid or liquid .. I have blocked, and therefore...
asked by 03.02.2018 / 21:42