Thanks Ugo, it's good to know I have options. But, I'm wondering how I would make the framework aware of this custom validator.
According to Leszek's example, the call to the javascript function is declared in the form definition. So this function is sitting in a .js file somewhere. How does the system know where to get it? If it was a flowscript, I would declare it in the flows section of the sitemap. But this isn't really a flowscript, so I'm unsure of where to put it in the sitemap. --- Ugo Cei <[EMAIL PROTECTED]> wrote: > Il giorno 09/ago/05, alle 19:24, footh ha scritto: > > > Might anyone be able to point me in the right > > direction of how to accomplish this with CForms? > Do I > > simply call form.show again? > > Yes, you can call form.showForm in a loop and > continue looping until > you determine that everything is OK and break out of > the loop. > > Alternatively, you can implement a custom validator > using a Javascript > widget directly in your form definition. Remember > that this snippet is > executed server-side, so it has access to everything > that is accessible > there, including a database connection. > > Ugo > > -- > Ugo Cei > Tech Blog: http://agylen.com/ > Open Source Zone: http://oszone.org/ > Wine & Food Blog: http://www.divinocibo.it/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
