Subject: | Problem with SELECT tags |
Hi Abe
Thanks for a fantastically useful module. WWW-Mechanise broke for some reason, and this saved my bacon!
When using this with IE6, I couldn't get a SELECT/OPTION field to work.
I stepped through the code and eventually found that the IE property "value" used in the select_value method of the Input class needed to be "text".
Thus
for ( my $i = 0; $i < $input->{options}->{length}; $i++ ) {
$input->options( $i )->{selected} =
exists $vals{ $input->options( $i )->{value} };
}
becomes
for ( my $i = 0; $i < $input->{options}->{length}; $i++ ) {
$input->options( $i )->{selected} =
exists $vals{ $input->options( $i )->{text} };
}
Thanks
Andrew