Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6166199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:17:49+00:00 2026-05-23T22:17:49+00:00

I have a webpage with 3 frames. The first frame has a form and

  • 0

I have a webpage with 3 frames. The first frame has a form and when the form is submitted, the second frame loads some data. I need to be able to read the data in the second frame. What I have so far is this,

# Use WWW::Mechanize to download webpage
my $mechanize = WWW::Mechanize->new(
        noproxy  => 0,
        stack_depth => 5,
        autocheck => 1
);
$mechanize->proxy( https => undef );
my @frames;
eval{
    my $me=$mechanize->get('link');
    $me->is_success or die $me->status_line;
    @frames = $mechanize->find_link( 'tag' => 'frame' ); # three frames
    $me=$mechanize->get($frames[0]->url);
    $me->is_success or die $me->status_line;
};

my $rb_value = 2000;
my $dt = '06/30/2011'
$mechanize->set_fields(
    'idxevent' => $rb_value,
    'mindate' => $dt
);
$mechanize->submit();

Now I need to retrieve the content of the second frame. What can I do for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:17:51+00:00Added an answer on May 23, 2026 at 10:17 pm

    Don’t bother with the frameset, get the url of the frame holding the form directly and submit it. Get the result of $mechanize->submit() in a variable, and then you can access it by calling the content() method:

    $result = $mechanize->submit();
    print $result->content();
    

    Mechanize does not care about the frameset and the submit target, it just gets the reply from the server so the same will apply for a normal frame-less layout.

    You can find an example here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage that is taking way too long and need to optimize
I have a webpage with a form element and a popup window (opened by
I have a webpage where there is a textarea within a iframe. I need
I have a webpage with the following structure: <html> <head>...</head> <frameset> <frame name=frame1 src=/index.jsp/>
I have a legacy web page made with frames (yah, I know). One frame
I basically have a webpage with two frames. -Left for nav -Right for main
I'm very new to JavaScript, and I have a webpage with 3 nested frames
I am having a frame-based webpage with 3 frames. A topliner, a navigation on
Basically, I want to scrape some options data daily from Yahoo! Finance. I have
I have a webpage where Firefox 2 displays the font certain, really specific elements,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.