puff has asked for the wisdom of the Perl Monks concerning the following question:
<a href="javascript:popContent('detail',1234,0,0);">Something</a>
When the user clicks on the link what happens at the end of the day is that the POST equivalent of this GET happensfunction popContent(action,cid,cntid,attid) { if (action == "detail") { document.content.cid.value = cid; document.content.action = "detail.asp"; document.content.submit(); } else { document.content.cid.value = cid; document.content.cntid.value = cntid; document.content.attid.value = attid; document.content.action = "preview.aspx"; document.content.submit(); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: WWW::Mechanize questions
by perrin (Chancellor) on Oct 28, 2005 at 00:31 UTC | |
by puff (Beadle) on Oct 28, 2005 at 16:25 UTC |