I'm attempting to incorporate a feature similar to the ones found in the beta Google Suggest (http://www.google.com/webhp?complete=1&hl=en) or Gmail, where the user's input is dynamically searched against a known list of values, pulled in via XmlHttpRequest. In our case, we're trying to create an alternative to a drop-down of 300-1000 names.
P.S. Eric Pascarello, I know you're out there. FYI, I picked up your book last week at B&N.
Thanks, Jason [ December 19, 2004: Message edited by: Jason Dixon ]
[ December 19, 2004: Message edited by: Eric Pascarello ]
Yeah, that looks perfect! I don't mind it being in an array... if I need to, I can pre-populate it with the available names (at the time of the request). Ideally, I'd like to incorporate XmlHttpRequest to pull the list dynamically, but this might cause more load than the administrators will allow.
In a perfect world, the input would have the ability to use a different value than what is in the input field (like a drop-down, for example). I'd like to pass a user ID rather than the strings in the array. Can you think of a way of doing this?
Joined: Nov 08, 2001
The one thing you can do is set up either a 2D array or a "parallel array" with the other values. Somewhere in that code is a function that sets the value in the text box. In that function, we need to grab the value from the second array and fill in the hidden text box.
(sent you files via email)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com