Building an AJAX Application (7): The running AutoSuggest:
(By Mark Qian on 8/24/2006)
Introduction
AutoSuggest Text Box become more and more popular, specially after AJAX is available.
The GUI appearance is kind of "new" but the concept has been around for a long time.
I used to work on the AR WebPlus in Remedy ten years ago (around 1996) and did page
level of "Auto-complete" with hidden frame. The goal of this demostration is to show
how Remote Scripting can be used to build an AutoSuggest in a variety of ways
using Mark's Communicator as the mean of communication...
Note: the autosuggest part of codes was borrowed from Nicholas C. Zakas's example: http://www.nczonline.net/.
I made some modification to hook to my Communicators.
And here are some stuff Show details you want to try.
Issues to look into:
- Prove AJAX can be turn off
- using IE6.x and go to "Tool|Internet Options...|security|internet (icon)|Custom Level;
- click at Reset if you can/want
- select "Disable" on "Run Active Controls and plug-ins" under "Active Controls and plug-ins"
- now go back to the tree page and search "using AJAX". You will can an error saying
"Automation server can't create object" meaning creating XMLHttpRequest object failed.
- then, change the "using" field to anyone other than AJAX, say "Dynamic Hidden Iframe",
it should work.
- Prove Cookie approach relies on cookie on
- turn your browser Cookie off
- try the serach using "Cookie"
- then, change the "using" field to anyone other than AJAX, say "Dynamic Hidden Iframe",
it should work.
Compatibility: IE (6.x, 7.x), FireFox (1.5.0.4), Mozilla/Netscape(7.2), Opera(9.0)
were fully tested and worked in XP (v2002. sp2).
|