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

  • SEARCH
  • Home
  • 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 8787725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:57:38+00:00 2026-06-13T21:57:38+00:00

I am using WWW::Scripter to grab a page written with javascript/ajax, the link to

  • 0

I am using WWW::Scripter to grab a page written with javascript/ajax, the “link” to the next page is a div tag, I can get the tag but cannot seem to figure out a way to click on it to get to the next page.. Any suggestions?

my $w = new WWW::Scripter;
$w->use_plugin('Ajax'); 
$w->get($c->website);

my $loop = 1;
my $page = 1;

while ($loop) {
  my $te = HTML::TableExtract->new();
  $content = $w->content();

  $te->parse($content);
  $table = $te->first_table_found;
  $str .= Dumper $table;
  $page += 1;

  $loop = $self->next_page($w);
}

sub next_page {
my $self = shift;
my $w = shift;
$div = $w->document->getElementById('example_next');
if (defined $div) {
--I want to click on the div and move to the next page, suggestions?---
return 1;
} else {
return 0;
}
}

example html code… First there is a table holding the data…

 <table class="display" id="example">
<thead>
    headers
</thead>
<tbody>---DATA---</tbody>
 </table>

Then pagination to go from “page” to “page” the data is rewritten with each pagination click..

<div class="dataTables_paginate paging_two_button" id="example_paginate">
<div class="paginate_disabled_previous" title="Previous" id="example_previous"></div>
<div class="paginate_enabled_next" title="Next" id="example_next"></div>
</div>

This is all using http://www.datatables.net

  • 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-06-13T21:57:39+00:00Added an answer on June 13, 2026 at 9:57 pm

    You need to identify the JavaScript call that occurs when that div’s id is clicked, and then execute it. Alternatively you could use WWW::Mechanize::Firefox or WWW::Selenium.

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

Sidebar

Related Questions

I am trying to automate a web application having javascript. I am using WWW::Scripter
I am using perl modules WWW::Scripter (based on WWW::Mechanize ) with JavaScript plugin and
I'm using WWW::Mechanize to do some standard website traversal, but at one point I
Can someone please help me to force my website to redirect to using www.
In my application i want to get the weather report I'm using http://www.google.com/ig/api?weather= for
I'm using this ( http://www.j-download.com/demo/demo-j-dcontact.html ) form on my website. It works great but
I am using WWW::Scripter module in my Perl application and I am trying to
I am using plugin WWW::Scripter (subclass of WWW::Mechanize ) to authenticate to my host's
I want to search content from a site using WWW::Mechanize but to be able
I want to get the content of a film of imdb by using WWW::Mechanize.

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.