> I wanted to create a registration form where after a user types in a > user name and moves the focus from that form field to another, I > wanted to validate the uniqueness of the inputted name and tell him > immediately (before he hits submit). Is there already some built-in > way in weblocks to do this,
No, not yet. > or would the way to do this be to create > my own input presentation that makes a call to my javascript method > that makes the validate request ajaxily (or something like that)? How about extending form-view-field to support immediate verification of a field via AJAX (if AJAX is available; reload the page else)? > Similarly, what is the easiest way to do client-side form actions? > For example, I have a chart linked to a form field, and as a user > enters a number in this form field, I want the chart to change in > size. I know this is possible with just some simple javascript on an > onKeyUp action, but again, is the easiest way for me to just make an > input presentation that allows me to attach javascript actions? With the new widget tree framework we could have a client-side MARK-DIRTY function that finds a widget for a given dom id, marks it dirty on the server side and updates it in the request response. That would be a nice way of generalizing it. It's possible with the old nav too but you'd have to write get-widget-by-id yourself. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
