coder57, First off, just out of curiosity, do you also post under the user name coder45? The reason I ask is that your usernames are similar, and coder45 asked many questions along the same lines as this one.
Yes I am one and the same, haven't logged on for a while, hence created a new name, glad you remember me.
Secondly if you read the WWW::Mechanize documentation you would find: "Please note that Mech does NOT support JavaScript. Please check the FAQ in WWW::Mechanize::FAQ for more."...Since you say it is your site, you may not have too much trouble writing a Perl work around to emulate your JavaScript code you have chosen to use
Where can I find such perl snippets that work around javascript?
"and there are 3 pages, I would like to edit the articles on the first page with the same text in $text, and the the next three articles on the next page with the text in $text2, and the next three articles on the last page with $text3" To me this does not make sense, why would each page have three articles that contain exactly the same text? Also you have the line use Data::Dumper; but you don't use it in your code that you have posted. Martin
I meant text links with Article1...Article2...Article3,
Also you have the line use Data::Dumper; but you don't use it in your code that you have posted.
I like to use old code, and keep what didn't bail out on me

In reply to Re^2: editing an article that also uses javascript with mechanize by coder57
in thread editing an article that also uses javascript with mechanize by coder57

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.