WWW::Mechanize module: multiple Select.

From: Charlie (cji_work_at_yahoo.com)
Date: 07/14/04


Date: 13 Jul 2004 18:36:01 -0700

Hi Folks,
It seems to me that there is a bug in the WWW::Mechanize module that
"multiple Select" does not work correctly.

Here is the code that written in PERL that gives "illegual value '452'
for field 'keyword' during the runtime.
"

$mech = WWW::Mechanize->new();
$mech->form(1);
$mech->field('keyword', 452);
$mech->submit();
...
"
Does anyone know a way to work around. I do not have the permission to
check the HTML file. And I have to select the keywords many many times
MANUALLY if that perl scripts does not work.

Any help ?

CJI.

Here is the html file I was going to access:

<FORM NAME="order_create" METHOD="POST"
ACTION="/cgi-bin/staffing/manager/ordervalidate_p2.pl" >
...
<TABLE border=0 bgcolor="#eeeeee" cellpadding="3" cellspacing="0"
width=100%>

     <select name="keywords" MULTIPLE size=8>
<option value="452">10 Key</option><option
value="445">Access</option><option
value="446">Administrative</option><option value="1">Administrative
Assistant</option><option value="363">Administrative/Clerical</option>
</select>
</TABLE>
...
</FORM>



Relevant Pages

  • Static Content Management -- Baking Pages rather than Frying them
    ... supply a 'template' HTML file ... a file to pad out the template ... tools on a Windows platform. ... I have looked at some Perl scripts, but they seem not to work on ...
    (comp.lang.perl.misc)
  • Static Content Management -- Baking Pages rather than Frying them
    ... supply a 'template' HTML file ... a file to pad out the template ... tools on a Windows platform. ... I have looked at some Perl scripts, but they seem not to work on ...
    (comp.lang.php)
  • Dir search and concat
    ... Does anyone know if there are any Perl scripts out there that will do ... When it finds an *.html file it reads it in and searches ... Jim Drabb ... Clermont, FL USA ...
    (perl.beginners)
  • Re: HtmlHelp / chm - problem
    ... >> jump to a keyword. ... > This isn't actually an ALink or KLink keyword, ... Open an HTML file ... But when I test the chm-file, I get no jump to this keyword. ...
    (microsoft.public.vc.mfc)