I am creating a form with relies on values being filled in on the form
by the user.
When the user enters a customer name it sets customer_id hidden text
field to the customer ID.
This ID is then used when querying for the branch and caller.
var customer_auto_completer = new Ajax.Autocompleter('customer',
'customer_auto', 'logform_customer.asp', {minChars:
0,afterUpdateElement: getCustomerId})
var branch_auto_completer = new Ajax.Autocompleter('branch',
'branch_auto', 'logform_branch.asp', {minChars:
0,parameters:'customer=' + $('customer_id').value +
'',afterUpdateElement: getBranchId})
var caller_auto_completer = new Ajax.Autocompleter('caller',
'caller_auto', 'logform_caller.asp', {minChars:
0,parameters:'customer=' + $('customer_id').value + ''})
The problem i am having is that it only gets the value of the hidden
text field on the initial page load which puts me back to square one.
Does anyone have a way of sending up the current value of another text
box as well as the original? Hope im along the right lines at least.
Anything has to be better than refreshing the page everytime the user
changes the customer
Thanks
Craig
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---