[twill] Having Trouble With Submit

im me amilli88 at gmail.com
Thu Apr 23 14:26:54 PDT 2009

Here is the javascript behind the postbackwithoptions call. I have no idea
what it does though. Can twill work with this? There is nothing else on the
form except a checkbox, whose value I set to 'on'.

<script type="text/javascript">
var theForm = document.forms['aspnetForm'];
if (!theForm) {
    theForm = document.aspnetForm;
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;

On Thu, Apr 23, 2009 at 5:20 PM, im me <amilli88 at gmail.com> wrote:

> Hi All,
> I am having trouble with a submit function on a web form. When I do it
> through the browser, the submit hits one page and then redirects to another,
> but when I use twill, the submit button merely hits the first page and hangs
> there. I get a 200 code, which suggests that it is done...
> There is some sketchy javascript on the submit button:
> <input type="submit" name="ctl00$centerContent$NextButtonControl" value="Buy
> Tickets" onclick="javascript:WebForm_DoPostBackWithOptions(new
> WebForm_PostBackOptions(&quot;ctl00$centerContent$NextButtonControl&quot;,
> &quot;&quot;, true, &quot;valBuyTickets&quot;, &quot;&quot;, false, false))"
> id="ctl00_centerContent_NextButtonControl" class="go_button go_grow" style
> ="margin:0px; padding:0px;" />
> any ideas?
> Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/twill/attachments/20090423/d34bd449/attachment.htm 

More information about the twill mailing list