is there some magic in farcry formtools where you can specify the ftajax function to be called Or do you have to write your own ftEdit that includes the JS call to /webtop/facade/ftajax.cfm?
2009/3/10 Blair McKenzie <[email protected]> > To access the ajax function use this url: > > /webtop/facade/ftajax.cfm?typename=abc&fieldname=def&property=ghi&formtool=jkl > > If the ajax function uses any of the object fields (including its own) > those should be passed back as post parameters. > > That facade will take care of figuring out which ajax function > (formtool.ajax, type.ftAjaxGHI, type[stMetadata.ftAjaxMethod], etc) to use. > > Blair > > On Mon, Mar 9, 2009 at 2:04 PM, AJ Mercer <[email protected]> wrote: > >> Thanks Blair. >> >> I am looking at adding ajax validation into a form >> - user name already used >> - password to short / not strong enough >> >> is there something like ftAJAXValidate (ajax version of ftValidation)? >> >> >> >> >> 2009/3/9 Blair McKenzie <[email protected]> >> >>> Sorry, I haven't documented the additions much. ftWatch was added as part >>> of 5.1, but it is just the default AJAX functionality. When you need more >>> complex AJAX functionality you can create your own ajax function that does >>> it's own thing instead of returning the edit HTML. For example an >>> autocomplete formtool would use the ajax function to generate a filtered >>> JSON result to be consumed by the input. >>> >>> If you want to go further than ftWatch I can try and make a few notes >>> about how to access /webtop/facade/ftajax.cfm (which is the interface for >>> the formtool ajax methods). >>> >>> Blair >>> >>> >>> On Mon, Mar 9, 2009 at 1:42 PM, AJ Mercer <[email protected]> wrote: >>> >>>> Is there somewhere where I can find how to use (best practices) AJAX >>>> with formtools? >>>> >>>> Just came across ftWatch - is this new? >>>> >>>> >>>> are these new too? >>>> ftEditMethod >>>> ftAjaxMethod >>>> I am guessing these override the defalut of ftEdit<propertyName> and >>>> ftAjax<propertyName> >>>> >>>> >>>> -- >>>> AJ Mercer >>>> Web Log: http://webonix.net >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >> >> -- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" 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/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
