From: Tim F. <tf...@tf...> - 2006-01-18 21:53:09
|
Ooops. Sorry, I forgot about that. It's a bug in the current release. It's fixed in the latest source, and there will be a new release soon, but right now you can't just do onsubmit="". I think you should be able to workaround this by doing: <script>document.forms['myForm'].onsubmit = ...</script> -t On Jan 18, 2006, at 4:43 PM, Sean Blezard wrote: > Hey Tim, > > Does the Stripes form support onsubmit - I know the standard HTML > form does but I couldn't see onsubmit as an option on the Stripes > form. > > Sean. > > On 18 Jan 2006, at 21:36, Tim Fennell wrote: > >> I think what you can do in that case (if memory serves) is provide >> an onsubmit hander for the form that calls your JS code to do the >> AJAX submit and then returns false preventing the regular form >> submission from occuring. I think. >> >> -t >> On Jan 18, 2006, at 4:33 PM, Sean Blezard wrote: >> >>> OK, >>> >>> It turns out that I needed to put HTML tags around the text - >>> then Firefox plays fair. Makes sense I guess. >>> >>> My problem now is a Safari one of all things - the old pressing >>> enter on a text field causing form submit problem. This form >>> submit goes to another page rather than calling the javascript >>> xmlhttprequest submit. >>> >>> >>> On 18 Jan 2006, at 13:57, Sean Blezard wrote: >>> >>>> Hi, >>>> >>>> I had a go with cribbing the calculator example into our code - >>>> a basic form submit roundtrip to the action bean which returns a >>>> simple String a la the calculator example. Now, it does truck >>>> off to the server and does return the string. However, on >>>> Firefox 1.5 it also returns several hundred characters of junk. >>>> I'm thinking this is going to be a Javascript in Firefox problem >>>> rather than a Stripes problem but I wondered if other people had >>>> come across this type of issue. >>>> >>>> Cheers, >>>> Sean. >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: Splunk Inc. Do you grep >>> through log files >>> for problems? Stop! Download the new AJAX search engine that makes >>> searching your log files as easy as surfing the web. DOWNLOAD >>> SPLUNK! >>> http://sel.as-us.falkag.net/sel? >>> cmd=lnk&kid=103432&bid=230486&dat=121642 >>> _______________________________________________ >>> Stripes-users mailing list >>> Str...@li... >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. Do you grep through >> log files >> for problems? Stop! Download the new AJAX search engine that makes >> searching your log files as easy as surfing the web. DOWNLOAD >> SPLUNK! >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=103432&bid=230486&dat=121642 >> _______________________________________________ >> Stripes-users mailing list >> Str...@li... >> https://lists.sourceforge.net/lists/listinfo/stripes-users > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through > log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD > SPLUNK! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=103432&bid=230486&dat=121642 > _______________________________________________ > Stripes-users mailing list > Str...@li... > https://lists.sourceforge.net/lists/listinfo/stripes-users |