Re: Re: Nothing happens when Enter button is clicked.
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
At 07:59 AM 8/8/2003 +1200, you wrote: >Hi Jacob, > >As to firebird, yes - I use Mozilla almost exclusively myself; roll on >firebird! >As to Konqueror, I looked for a Javascript debugger and couldn't see one >(Konqueror 3.05 RedHat 8). > >Your comment below interested me... > ><quote>if javascript is enabled, the HTMLActionRenderer will render >javascript events for any BAction components bound to form elements. </quote> > >If we look at the page >http://www.ashleyit.com/rs/jsrs/select/php/select.php again. Are you >saying that I can generate the same page using Barracuda components >because there is support for "Remote Scripting" built into the Barracuda >framework? (That would be real nice - I looked at implementing JSRS in a >different web project some time ago for "nested select box lookups" but >one of the issues was the extra cost and complexity of moving outside the >then existing framework.) Don't confuse the general scripting done by the HTMlActionRender and the specific feature of Back button disabling. It is the latter, which is optional, that can be used to do remote scripting to allow for disabling the back button. This is also why I asked you to see if the BConfig application worked for you, since it does not use back button disabling, but does use BAction generated javascript events. So, does it work for you? If not, that points to a more serious lack of javascript capability on the part of Konquerer. So, I'm not exactly sure how difficult it would be to implement the JSRS select demo in Barracuda. I'd have to take a closer look at how that demo is set up to tell you for sure. Additionally, Barracuda uses a modified jsrsClient.js file called ClientServerHTTPLib.js. You can find it in the org.enhydra.barracuda.core.scripts package. If you have a nice diff tool, just do a comparison of the original file and the modified one. There is much in common, but some real differences. You'll have to tell me if it works out. Note that there is also an BAction#addScriptFunction(String) method where you can add your own javascript validation script to be run before anything gets sent to the server. Here is where you can circumvent Barracuda's standard event scripting functionality. You can do whatever you want and then return false to keep Barracuda from performing a post. I posted a description of this here.. http://www.jguru.com/faq/view.jsp?EID=780950 It would actually be a good exercise to try to implement the JSRS select demo in Barracuda. Maybe we can have it as one of the examples? Jake >Thanks >Stephen > > >_______________________________________________ >Barracuda mailing list >[email protected] >http://barracudamvc.org/lists/listinfo/barracuda