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 aens = scoaux.arrens;

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.



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

Upgrade 3.4.8 to 3.5.1 failed "download package failed" - Joomla! Forum - community, help and support

Joomal 3.6.3 update error - PHP temporary folder is not set - Joomla! Forum - community, help and support

Fatal error during instalation - Joomla! Forum - community, help and support