Previously, I posted abt a 'Button Not Clickable' error but ended up solving it by using the POST method with the help of Live HTTP Header.
However I got a couple of replies telling me to change the form action before submitting the form as the action had been changed in the source code before navigating to the next page.

1) Can anyone temme how to change the Form action attribute while using WWW::Mechanize to submit a form? (Noob in Perl :P)

2) Secondly, I'm on a web page now that has a small image, which upon clicking opens a dialog box to prompt me where to save a file on my comp. Once again, there is a form on this page with various fields of type "hidden" & the form action is changed here again before going to the dialog box. I've pasted a part of the code here. Pls lemme know how, after changing the form action, can I download the file, i.e Will it do it automatically once I submit or do I need to use any other functions..
Thanks

function ExportToExcel() { document.frmSubNets.action = "./IPAllocSubNetsExcel.asp"; document.frmSubNets.submit(); return true; } // THE ABOVE IS WHERE THE FORM ACTION IS CHANGED & SUBMITTED AFTER WHI +CH THE DIALOG BOX IS OPENED <Form Name=frmSubNets Method=Post Action="./IPAllocSubNets.asp"> <Br> <Center> <Table Width=95% Align=Center border=0 cellspacing=1 cellpadding=1> <Tr><Td><A Href="javascript:ExportToExcel();"><IMG SRC=".. +/images/miniexcel.gif" name="Excel" size="15" border=0><A></Td></Tr> <Tr> <Td Colspan=3><INPUT type="button" value="Select A +ll" name=btnCheckAll onClick="btnCheckAll_onClick(this);"></Td> <Td Colspan=4 nowrap align=center><Font face=verda +na color=#0000ff size=2>Join Function only works when sorted on Subne +t Column.</Font></Td> </Tr> <Tr class="TableMainRow"> <Td class="TableMainRow" Align=Center ColSpan=30> <Font face=verdana color=ffffff size=2><B>Sub Nets +</B></Font> </Td> </Tr> <Input Type=Hidden Name=SubnetId107 Value="760899"> <Input Type=Hidden Name=Subnet107 Value="10.183.18.100/30"> //A LOT LIKE THE ABOVE 2 LINES FOLLOW & PRECEDE... .... </Form>

In reply to Retrieving Files by Battle_Fury

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.