Hello all mates, I am a new user to this site and a beginner with PERL. I am trying to get whole article base from page

 http://knowledgebase.progress.com/pkb_Home?l=en_US&c=Product_Group%3AArcade%2CArea_of_Interest%3AAdmin_Config&pg=kbase

to save on local disk.

In my PERL script am able to get links to articles that apears on page but i don't know how to simulate click on "Next" link to get the rest of articles. Is it possible in Perl ? When click on this link, server run AJAX script to fetch next links to articles.

I google that problem but I only find that I should write my own version of AJAX script :/. Is a diffrent way to do this ?

I use  LWP::UserAgent->new; to get page content and i also had second version where I use  WWW::mechanize->new; method to get page content.

I try method  $mech->form_name('j_id0:j_id1:j_id186:j_id187:j_id191')->action($action); but still without positive result

I see that also is possible to run  $ie->get('javascript:functionToExecute()'); when use Win32::IE:: Mechanize but I don't know how to run AJAX script from this page.

Onclick action:

 onclick="A4J.AJAX.Submit('j_id0:j_id1:j_id186:j_id187:j_id191',event,{'status':'j_id0:j_id1:j_id186:j_id187:j_id191:nextStatus','similarityGroupingId':'j_id0:j_id1:j_id186:j_id187:j_id191:j_id238','parameters':{'j_id0:j_id1:j_id186:j_id187:j_id191:j_id238':'j_id0:j_id1:j_id186:j_id187:j_id191:j_id238'} } );return false;"


In reply to Run onclick action on website. by komdrat54

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.