Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Any way to load an html file into a variable and convert it to an object.

$
0
0
Normally I load html files into the browser and grab the html using the $oIE model..then I can run the DOM stuff on each file loaded into the browser... but the problem is that I need to load several hundred html files with bytes in the 100k range.  To load each into the browser to process takes a long time...
So I load the html files into a string for example $str and try to run the dom stuff on that string and of course it is not an object so it won't cooperate.
Is there a way to fake it out or convert the string $str to an object so the DOM stuff can do its thing..

I am loading the $str from the old basic open file and read line by line..  Then I am using the following..
$str = $str & $line so that in short order the files are loaded... maybe 1 or 2 seconds per file.. but to load the same file in the browser may take 7 or 8 seconds...

Can anyone help...

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>