hi andy
i have had a problem with javascript today... the javascript added some hidden fields that were not in the html and i have had to find a way to add them with mechanize. i have the following code in the ML archive and it just worked fine! so you could add this example....
$agent->form(3);
my (%attrib); my $form = $agent->current_form();
$attrib{name} = "searchMode"; $attrib{value} = "propertyid"; $form->push_input("radio", \%attrib); $agent->field("searchMode" , "propertyid");
$attrib{name} = "propertyId"; $attrib{value} = ""; $form->push_input("text", \%attrib); $agent->field("propertyId" , $prop_cd);
original post: http://groups.google.ch/groups?th=fc49d619bb58cb4&seekm=Pine.LNX.4.44.0406101340440.5792-100000%40fnord.io.com
regards KoS
ps.: problem with the sunrise login-page still not solved.... i'll see if the problem could be solved by a sleep(x) ....
--
Martin Kos +41-76-384-93-33
http://kos.li Say NO to HTML in mail ICQ# 13556143
Proudly running Debian GNU/Linux