traviss has asked for the wisdom of the Perl Monks concerning the following question:
Uncaught exception from user code: OLE exception from "<Unknown Source>": Invalid access to memory location. Win32::OLE(0.1702) error 0x80020009: "Exception occurred" in METHOD/PROPERTYGET "document" at C:\Scripts\this.pl line 69 at C +:/Perl/site/lib/Win32/OLE/Lite.pm line 216 Win32::OLE::Tie::FETCH('Win32::OLE::Tie=HASH(0x1c0e754)', 'docu +ment') called at C:\Scripts\this.pl line 69
The line, specifically, that is crapping out is the 2nd to last, where I attempt to print innerHTML. The reason being, I CANNOT access the document portion. Any help would be appreciated, thanks!my $IEDoc = $IEWin->{Document}; my $frames = $IEDoc->{frames}; my %frameshash; for (my $i = 0; $i < $frames->{length}; $i++) { $frameshash{$frames->{$i}->{name}} = $frames->{$i}; } foreach my $key ( keys( %frameshash ) ) { print "\n".$key."\n"; print $frameshash{$key}->{document}->{body}->{innerHTML}."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Error trying to get the document object from a frame
by InfiniteSilence (Curate) on Sep 14, 2005 at 23:20 UTC | |
by traviss (Initiate) on Sep 15, 2005 at 00:01 UTC | |
by InfiniteSilence (Curate) on Sep 15, 2005 at 13:00 UTC |