[Chicago-talk] Re: www::mechanize - setting a drop down list

Jay Strauss me at heyjay.com
Sun Nov 2 07:26:56 CST 2003


Nevermind, there was a radio button I needed to click too, to make it work

----- Original Message -----
From: "Jay Strauss" <me at heyjay.com>
To: "chicago-pm" <chicago-talk at mail.pm.org>
Sent: Saturday, November 01, 2003 6:27 PM
Subject: www::mechanize - setting a drop down list


> Hi,
>
> I'm trying to set a <select> list in a form and then submit but I'm not
> getting any results
>
> # $a is my mech
>     $a->get($txnPage);
>     $a->submit_form(
>         form_name => 'DATERANGE',
>         fields    => {TIME_PERIOD => 3, }
>     );
>
>     print $a->content,"\n";
>
> but the content is the same as it was when I originally retrieved the page
>
> I'm trying to set the code in:
>
>   <SELECT NAME="TIME_PERIOD" onChange="selectTimePeriod()" SIZE="1"
> STYLE="font-size: xx-small; font-family: Arial,Helvetica;">
>       <OPTION VALUE="0" SELECTED>Last 7 Days</OPTION>
>       <OPTION VALUE="1" >Last 14 Days</OPTION>
>       <OPTION VALUE="2" >Last 30 Days</OPTION>
>       <OPTION VALUE="3" >Last 60 Days</OPTION>
>       <OPTION VALUE="4" >Last 6 Months</OPTION>
>       <OPTION VALUE="5" >Current Year</OPTION>
>       <OPTION VALUE="6" >Prior Year</OPTION>
>   </SELECT>
>
>
> Any help would be appreciated
> Jay
>
>
>
>




More information about the Chicago-talk mailing list