TacoVendor has asked for the wisdom of the Perl Monks concerning the following question:

Quick question today. I have looked all over, but seem to be missing the answer.

I am having an issue reading an individual frame that is generated from a web page I call. For example: I make a call to index.html while passing some variables across to the site with the call. Based in what I have sent, the site returns an index2.html first, and as the top left frame of the page that says "your browser needs upgrading". A top right frame is also built and presented to me with the data I am looking for, and a frame (that has no data I need) covering the lower half of the browser.

Is perl able to "see" the 2nd and 3rd frames that get sent by the site? If so, how?

If it is of any help, modules I am using in the script that have some relation to calling web pages are: HTTP::Request::Common and LWP::UserAgent.

I am the TacoVendor
  • Comment on Using perl to read multiple html frames

Replies are listed 'Best First'.
Re: Using perl to read multiple html frames
by fruiture (Curate) on Aug 15, 2002 at 15:53 UTC

    Well, what do you mean be "see the 2nd and 3rd frames"? A frameset is an HTML Document as any other and you can extract the URIs of the frames out of that frameset using HTML::Parser (or similar). Have a look at http://w3.org/TR/html4 to see what a frameset looks like.

    --
    http://fruiture.de

      I understand what you are saying about the frame being just another html document, and I understand how to build the frames and how they are presented to the browser.

      ..... 10 minutes pass .....

      Nevermind. I figured out how the site was calling the frame I wanted to get the data from. First frame (the only one perl was seeing) called in the frame I labelled as the '3rd'. That frame then created the one I wanted the data from.

      Please excuse my lack of brainpower this morning. I think I used it all up trying to figure out some Windows/IE issues. Yeah, yeah, I think the same as most sane people about Windows, etc. The best part about Windows is that these things take constant administration. Job security without having to create it myself!

      I am the TacoVendor