Hi Mike, Try adding to the required button the attribute 'name="ComparisonStep1Back"', this might help.
Martijn [EMAIL PROTECTED] wrote: > Hello, > > I have the following form with a non-submit button named > "btnBack" that uses JavaScript (first button below): > > > <html:form action="doSomething" method="post"> > > <TABLE> > > <TR> > > <TD ALIGN="left" VALIGN="top" WIDTH="67%"> > > <INPUT CLASS="secButton" STYLE="cursor:hand;" TYPE="button" > onClick="history.go( -1);" > > VALUE="<fmt:message key="cancel"/> »" NAME="btnBack" > ID="ComparisonStep1Back" ACCESSKEY="C"> > > <INPUT CLASS="secButton" STYLE="cursor:hand;" TYPE="Reset" > VALUE="<fmt:message key="reset"/> »" > > NAME="btnReset" ACCESSKEY="R"> > > </TD> > > <TD ALIGN="right" VALIGN="top" WIDTH="33%"><INPUT CLASS="primButton" > STYLE="cursor:hand;" TYPE="Submit" > > VALUE="<fmt:message key="selectSomething"/> »" NAME="btnCompare" > ACCESSKEY="S"> > > </TD> > > </TR> > > </TABLE> > > </html:form> > > > I'm trying to call the button with: > > clickButton( "ComparisonStep1Back" ); > > This does not take me back to the prior page. I believe it's staying > on the same page. Are there issues with certain JavaScript > statements? Does this have more to do with HttpUnit than JWebUnit? > > Any help appreciated, > Michael ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jwebunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jwebunit-users
