in reply to Error while using WWW::Mechanize

onclick="return incrementClicks('14');"

WWW::Mechanize doesn't have a JS interpreter. You'll either have to do the equivalent of the JS yourself, or switch to something that processes JS. As for the later, I think there's a module that adds some measure of JS to WWW::Mechanize (can't remember the name), and there's a couple of other Mechanize modules that use JS-aware backends (e.g. IE, Mozilla).

Replies are listed 'Best First'.
Re^2: Error while using WWW::Mechanize
by Corion (Patriarch) on Dec 30, 2010 at 13:00 UTC

    Also see WWW::Scripter, which has a Javascript emulator as backend but doesn't conveniently show up in a "Mechanize" search. I haven't used it myself as I didn't have the necessity of headlessly automating a Javascript-laden website.

Re^2: Error while using WWW::Mechanize
by superfrink (Curate) on Dec 30, 2010 at 22:13 UTC
Re^2: Error while using WWW::Mechanize
by Anonymous Monk on Jan 01, 2011 at 07:02 UTC
    Thanks a lot for the help