in reply to Re: editing an article that also uses javascript with mechanize
in thread editing an article that also uses javascript with mechanize

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
  • Comment on Re^2: editing an article that also uses javascript with mechanize

Replies are listed 'Best First'.
Re^3: editing an article that also uses javascript with mechanize
by marto (Cardinal) on Aug 08, 2006 at 10:46 UTC
    coder57/coder45,

    Firstly please do not create multiple accounts for arbitrary reasons. Doing so makes it harder for people to spot trends in questions, which in turn makes it a little bit more difficult in finding out how best to provide advice. A great deal of your posts (as coder45) suggested you were automating posts to various different forums, and trying to get around fact that such sites want to make automated posts difficult to achieve. See Re: Why code is not posting for more information.

    "Where can I find such perl snippets that work around javascript?"

    You seem to be misunderstanding initial advice, or confirming my previous point in this post. If as you claim it is your site you are trying to update, how can you not know what the JavaScript is doing? You seem to be asking for a Perl function to take a piece of JavaScript and perform this using Perl.

    Martin