<form id="form" action="printChokePoints.php" method="POST" enctype="multipart/form-data"> <script> // The blockUI function doesn't work on IE8 with frames ! We have to // block div $('form').block({ css: { border: 'none', padding: '15px', backgroundColor: '#000', '-webkit-border-radius': '10px', '-moz-border-radius': '10px', opacity: .5, color: '#fff' } }); $(document).ready(function() { $('form').unblock(); }); </script>
Select a biosource <select name='org' size=1 onChange='javascript:changeOrg(this.value)'>
<option value=''>Select a biosource</option>
<option style="color:black;" value=884 >Bacillus anthracis (Strain: Ames Ancestor) MicroCyc</option>
<option style="color:black;" value=885 >Bacillus subtilis (Strain: 168) MicroCyc</option>
My perl code os
$url = "http://metexplore.toulouse.inra.fr/metexplore/index.php/2011-0
+6-06-14-41-
10/choke-point-reactions";
my $mech=WWW::Mechanize->new();
$mech->get($url);
$value ="Bacillus anthracis (Strain: Ames Ancestor) MicroCyc";
#$mech->form_id('form');
$mech->field('org',$value);
#$mech->select('org', '?Bacillus anthracis(Strain:Ames Ancestor)MicroC
+yc');
$mech->set_fields('org'=>$value);
$mech->submit;
but the error is coming "Can't call method "some_method" on an undefined value at -e line 1407."
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.