Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Perl
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Perl section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 13th, 2007, 10:29 AM
Friend of Wrox
Points: 8,019, Level: 38
Points: 8,019, Level: 38 Points: 8,019, Level: 38 Points: 8,019, Level: 38
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default mech errors with - "There is no form named" - when

Code:
use WWW::Mechanize;
$mech = WWW::Mechanize->new(cookie_jar => undef,stack_depth => 0);
....code....
$mech->form_name("myForm");
When i use the code above to screen scrape a webpage using Mech, i get this error SOMETIMES, but not always??
i know 'myForm' is there (for sure). is this something to do with server load?
There is no form named "myForm" at /usr/lib/perl5/Picco/mod/Test.pm line 420

www.crmpicco.co.uk
www.ie7.com
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk




Similar Threads
Thread Thread Starter Forum Replies Last Post
access hidden form value with Mech - Mechanize crmpicco Perl 1 May 29th, 2011 08:42 AM
Can't open infopath form - errors in definition! edove Infopath 6 May 13th, 2009 01:39 AM
Form Validation w/ Cookies, Errors? Spookster187 Beginning PHP 3 September 10th, 2004 02:08 PM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
Dynamically Named form elements conundrum Javascript How-To 4 October 1st, 2003 04:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.