Help for this page

Select Code to Download


  1. or download this
    This is the source html tag
    <input type="file" name="ctl00$ContentPlaceHolderContent$FileUpload_op
    +fFile" id="ctl00_ContentPlaceHolderContent_FileUpload_opfFile" style=
    +"width:406px;" />
    
  2. or download this
    use strict;
    use warnings;
    use Win32::IEAutomation;
    ...
         SetValue('C:\test\9780547076034NIMAS.opf');
    $ie->WaitForDone();
    $ie->closeIE();
    
  3. or download this
    $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o
    +pfFile')->SetValue('C:\test\9780547076034NIMAS.opf');
    
    ...
    $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o
    +pfFile')->SetValue("C:\\test\\9780547076034NIMAS.opf");
    
    $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderContent$FileUpload_o
    +pfFile')->SetValue("C://test//9780547076034NIMAS.opf");
    
  4. or download this
    <table cellpadding="1" cellspacing="1" border="0">
            <tr>
    ...
                                &nbsp;<br />
                                <input type="submit" name="ctl00$ContentPl
    +aceHolderContent$btnPullMetadata" value="Validate &amp; Populate Fiel
    +ds Below" onclick="javascript:WebForm_DoPostBackWithOptions(new WebFo
    +rm_PostBackOptions(&quot;ctl00$ContentPlaceHolderContent$btnPullMetad
    +ata&quot;, &quot;&quot;, true, &quot;vgOPFValidation&quot;, &quot;&qu
    +ot;, false, false))" id="ctl00_ContentPlaceHolderContent_btnPullMetad
    +ata" title="Validate your OPF and pulling data out through OPF metada
    +ta" class="defaultButton" style="width:350px;" /><br />
    
  5. or download this
    <html>
    <head>
    ...
    <INPUT TYPE=SUBMIT VALUE="Submit">
    </body>
    </html>
    
  6. or download this
    use strict;
    use Win32::IEAutomation;
    ...
    $ie->gotoURL('C:\ex.html');
    $ie->getTextBox("name:", "upfile")->SetValue("C:\\qctool.jar");
    $ie->WaitforDone;
    
  7. or download this
    <html>
    <head>
    ...
    <INPUT TYPE=SUBMIT VALUE="Submit">
    </body>
    </html>
    
  8. or download this
    use strict;
    use Win32::IEAutomation;
    ...
    $ie->gotoURL('C:\ex.html');
    $ie->getTextBox("name:", "upfile")->SetValue("C:\\qctool.jar");
    $ie->WaitforDone;
    
  9. or download this
    use diagnostics;
    if( my $textbox = $ie->getTextBox('name:', 'ctl00$ContentPlaceHolderCo
    +ntent$FileUpload_opfFile') ) 
    ...
    else {
        print "could not get the text box\n";
    }