Hey Acoder,
I got it to work! But its really strange. Ok when i was testing earlier i typed in the word test into the custnum (wont let me submit without a value in there).but anyway when i went to test it the way we were testing i typed in 444 and i got Conversion failed when converting the nvarchar value 'test' to data type int. The weird thing is there 2 separate records one is 444 (with its fields) and the other is test(with its fields). An now i am wondering, if the customer number is say a4t6 is it going to have a problem with this?
An also wanted to ask. I really need to make it a drop down box for the value. Like example they start typing in the input and the drop down field populates (based on the input). this part i can figure out (have already done it). but how would i make it populate the rest of the fields by clicking on the correct number in the drop down rather then after i type in the number into the field and pressenter? from the way the code works (with what we got) couldn't i put on my dropdown box like this
or would i need to do it this way
this part appears in the function initFormEvents( ) ok thinking about it i could even do it this way
here is an example of what i am trying to do (without the populating rest of fields part)
http://www.mattkruse.c om/javascript/autocomplete/index.html
Thank you,
Rach
I got it to work! But its really strange. Ok when i was testing earlier i typed in the word test into the custnum (wont let me submit without a value in there).but anyway when i went to test it the way we were testing i typed in 444 and i got Conversion failed when converting the nvarchar value 'test' to data type int. The weird thing is there 2 separate records one is 444 (with its fields) and the other is test(with its fields). An now i am wondering, if the customer number is say a4t6 is it going to have a problem with this?
An also wanted to ask. I really need to make it a drop down box for the value. Like example they start typing in the input and the drop down field populates (based on the input). this part i can figure out (have already done it). but how would i make it populate the rest of the fields by clicking on the correct number in the drop down rather then after i type in the number into the field and pressenter? from the way the code works (with what we got) couldn't i put on my dropdown box like this
Code:
onclick="document.getElementById('clientID').onblur = getClientData";
Code:
onclick="document.getElementById('clientID').focus()";
Code:
onclick="javascript:initFormEvents()";
http://www.mattkruse.c om/javascript/autocomplete/index.html
Thank you,
Rach
Comment