Jump to content

Need help with _Array and HTML Table


raziel2109
 Share

Recommended Posts

Hi all,

My problem very frustrating.... so I'll explain it immediatly:

I'm trying to create an array from a table in an html page, and this is really a simple thing, using the following code:

....
$oIE = _IEAttach("checkboxes needing updates", "TITLE")
Local $oTable = _IETableGetCollection($oIE, 1)
Local $aTableData = _IETableWriteToArray($oTable)
.....

My array, then, is full of useful informations exept for one column, and that column is the only one i need!

Some informations in that column was only partially acquired, ending with dots (....) it seems like the information contained is too long to fit.

The truth, instead, is that the HTML page contains javascript code that trim (right) the information if it is too long for the table cell displayed. Checking the html code shows the right thing, complete informations are written those cells without dots.

Why this happens? why the array is build on what I see on the IE page and not with the contents of that page?

is there a way to take full infos from the html?

I'm trying to use _IEBodyReadHTML but I need row numbers to put a check and this function is not so useful...

Please Help Me

Thanks

Pietro Di Mascio

Link to comment
Share on other sites

Hi Pietro, There is a way to take full info from the html.

Just replace this line in _IETableWriteToArray() in IE.au3:

$a_TableCells[$col][$row] = $td.innerText

with this one

$a_TableCells[$col][$row] = $td.innerHTML

Lars

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...