Hi Lev Do you reach your javascript code?
Regards Søren Den 09/09/2010 kl. 01.01 skrev Lev <d...@plektos.com>: > hi, > > i am trying out the AJAX example in the Stripes book > ("...and Web Dev...") on page 333. > > it contains a form with the following: > > <s:form > beanclass="com.plektos.practice.action.ajax.HelloAjaxActionBean"> > You give me $ > <s:text name="youGiveMe" onkeyup="sendMoney(this);"/> > <s:submit name="doubleMoney"/> > </s:form> > > i was expecting that anytime i hit a keystroke in the "youGiveMe" > text box, the javascript function would be called. however, this > does not appear to happen -- nothing happens when i type into > the text box. > > i know that sendMoney() works because if i hit the submit button, > i get the expected response from my controller -- a value that is > double that supplied (in a format such as "104;" for a value > entered of "52"). > > i have tested this JSP in both chrome and firefox. same result. > any ideas on why "onkeyup" does not trigger a call to sendMoney()? > > thanks. > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Stripes-users mailing list > Stripes-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users