Scraping single table from HTML using JavaScript -


Here's my problem: An internal issue is the tracking system that has a good summary page (number of open problems broken by the developer , Etc.) However, the compact summary table is surrounded by boilerplate craft (navigational menu, search box, etc.), I want to embed the summary table on the page of our team, but not the near-cruelty. A & lt; Iframe & gt; The tag will be a minor solution, if it is not for cruelty around the table, then I am interested in it. Fortunately, the HTML table in question is well illustrated: it has been defined regularly; Table & gt; The tag and it also has a unique ID that has been assigned to it. I was wondering if there is a simple JavaScript move that includes a DOM manipulation, which I can use to remove the table that is interested in IFrame. In this way, the report will always be updated whenever a person checks on our team's homepage.

If you use JQuery, you can drag the table code very easily Now if the script in the table There are blocks, things can be weird; Similarly, if it relies on some stylesheet, make sure that your destination page is also on them.

Is the table surrounded by any type of block-level element (one or a few)? If so, you can load the page (AJX or Hidden IFam), find the table by "ID", go to parent and then take your destination block as HTML (). If no block-level parents are suitable for this, you can try to rebuild an empty table tag at your destination and then drag the html () from the source table and drop it there; However, things seem to be a bit weird, because some browsers handle the table layout in a weird way. Although the work may be done.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -