Use CFAJAXPROXY to bind to the same values, and have it run a JS
function. In that function, test your length, and if all is good, use
ColdFusion.navigate to "send" your div to the right URL.
On Nov 14, 2007 12:01 AM, Rob Kopp <[EMAIL PROTECTED]> wrote:
> I have bound a form to a cfdiv for the purpose of filter as you fill out the
> form kinda thing.
>
> <cfdiv bind="url:[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL
> PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL
> PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL
> PROTECTED]&[EMAIL PROTECTED]" />
>
> everything is working fine, however I only want it to filter after the third
> character typed in the CompanyName field. Does anyone know of a way to tie
> in a javascript function to check if the length of the field value is GTE 3
> before it binds/searches?
>
> right now I have it set to @keypress, is there a way to write a custom
> function like [EMAIL PROTECTED](document.myform.CompanyName.value.length >=
> 3){keypress}}
>
> any ideas?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293283
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4