Hi

I'm using the AutoComplete widget with TG 1.0.8.  I have another field 
that is dependent on the result of the autocomplete selection.  Here's 
the scenario.

User is filling out an order form.  I use the autocomplete field to 
allow them to select the item.  Once the item is selected, I want to 
display the items price in a label below the autocomplete field.  To get 
the price, I need to know the ID of the item selected which will be 
stored in the _hidden field associated with the autocomplete field.  
But, if I trigger a new js function off the onblur event of the _text 
field, the _hidden field isn't yet populated.

If I trigger the price field update based upon 'onfocus' of the quantity 
field (after the item field in the list) then the quantity comes in as 
expected.  However, I really would prefer to not do it that way and have 
the price update before the cursor gets in the quantity field.

Thoughts?

    -Jim

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to