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'.<br><br><pre id="line30">
<<span class="start-tag">script</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text/javascript"</span>><br>//<![CDATA[<br>var theForm = document.forms['aspnetForm'];<br>
if (!theForm) {<br> theForm = document.aspnetForm;<br>}<br>function __doPostBack(eventTarget, eventArgument) {<br> if (!theForm.onsubmit || (theForm.onsubmit() != false)) {<br> theForm.__EVENTTARGET.value = eventTarget;<br>
theForm.__EVENTARGUMENT.value = eventArgument;<br> theForm.submit();<br> }<br>}<br>//]]><br></<span class="end-tag">script</span>><br></pre><br><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 5:20 PM, im me <span dir="ltr"><<a href="mailto:amilli88@gmail.com">amilli88@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br><br>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... <br>
<br>There is some sketchy javascript on the submit button:<br><br><<span>input</span><span> type</span>=<span>"submit" </span><span>name</span>=<span>"ctl00$centerContent$NextButtonControl" </span><span>value</span>=<span>"Buy Tickets" </span><span>onclick</span>=<span>"javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$centerContent$NextButtonControl&quot;, &quot;&quot;, true, &quot;valBuyTickets&quot;, &quot;&quot;, false, false))" </span><span>id</span>=<span>"ctl00_centerContent_NextButtonControl" </span><span>class</span>=<span>"go_button go_grow" </span><span>style</span>=<span>"margin:0px; padding:0px;" </span><span><span>/</span></span>><br>
<br>any ideas?<br><br>Thanks!<br><pre><br><br></pre>
</blockquote></div><br>