Menu

#6 On select of entry launch another function

open
None
5
2006-04-21
2006-04-08
Anonymous
No

I have used the suggest framework to look up companies
from a database of several thousand and it works
well. However I would like to take an action after
the final value is selected and so would like to
launch another script function. All would be fine if
some browsers supported the onchange event correctly,
but they don't!

my email is mike@jupps.co.uk

thanks for your time

Mike Jupp

Discussion

  • Anonymous

    Anonymous - 2006-04-21

    Logged In: YES
    user_id=1325304

    This is actually a bug in the program. I will be addressing
    this in the next version.

     
  • Anonymous

    Anonymous - 2006-04-21
    • assigned_to: nobody --> mratzloff
     
  • Anonymous

    Anonymous - 2006-04-21
    • status: open --> pending
     
  • Anonymous

    Anonymous - 2006-04-21
    • status: pending --> open
     
  • Nobody/Anonymous

    Logged In: NO

    Figured it out myself, may not be the most elegant but it works!
    In the HTML include afterselect="somefunction()" in the autosuggest input.
    In the javascript suggestFramework add this(line numbers approximate):
    448 if(getAttributeByName(inputElements[instance], "afterselect")) sfw[instance].afterselect = getAttributeByName(inputElements[instance], "afterselect");

    280 eval(sfw[instance].afterselect);

     

Log in to post a comment.

MongoDB Logo MongoDB