http://qs321.pair.com?node_id=442398


in reply to Submitting form data to Javascript form

Find out what cntyzip() actually does and rewrite your HTML as appropriate before form submitting.

$browser->get( $starting_url ); ## Reverse engineer cntryzip() here. my $html = $brwoser->content; $html =~ s/" onSubmit="cntyzip()"/cntyzip.cgi"/isg; ## Insert de-JS'd version here. $browser->update_html($html); $browser->form_name("GS"); $browser->submit();
Update: s/mech/browser/; # oops

    --k.