Dropdown like google search ("AJAX")
hi guys,
i apolozies english.
i'm trying make dropdown allows enter text , when change field content (change event), literal in array have in script object.
the problem not load content in change event, have lose focus of dropdown , enter again charge me list.
i've proven change xfa.host.setfocus object (object) , again dropdown, when go in dropdown select text had entered , not intuitive.
summaries need in order load list or else order put cursor @ end of dropdown content.
this code have in change event:
var svalue = xfa.event.newtext.touppercase();
if( xfa.event.prevtext != svalue )
{
this.clearitems();
for( = 0 ; < aens.length ; i++ )
{
var snameens = aens[i][0].touppercase();
var iresult = snameens.indexof( svalue );
if( iresult != -1 )
{
this.additem( aens[i][0] , aens[i][1] );
}
}
xfa.host.openlist(this);
}
else
{
xfa.event.selend = 0;
}
thank in advance.
try:
http://cookbooks.adobe.com/post_drop_down_list_control_with_auto_complete__searcha-18402.h tml
or:
http://cookbooks.adobe.com/post_allow_a_user_to_filter_the_items_in_a_dropdown-19234.html
kyle
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment