Building an AJAX Application (5): The running On-demand Tree:
(By Mark Qian on 8/25/2006)
Introduction
Trees are commonly used components to represent Hierarchies. Traditionally, on-demand trees
are reloaded entirely when new content needs to be added. Remote Scripting allows
trees to be updated "silently" without reloading. The goal of this demostration is to show
how Remote Scripting can be used to build on-demand trees in a variety of ways
using Mark's Communicator...
This is not a solid product so there may be some bugs like it may not be able to find all the links and
some functionality like "image search" shown is not implemented yet.
Try it to see how far you can reach and how big the web is;=).
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.
- Prove Cookie approach is limited by the size limitation of cookie
- Use AJAX to open the seed url, "bamboogarden.com"
- Change "using" field to "Cookie"
- Try to expand a tree node containing a lot of links, say "Price List", and it will fail.
- Change "using" field to "AJAX"
- Try to open the same link and it should work
- Change "using" back to Cookie"
- Try to open a node with a few links like 4 or 5 links, "say pests.htm" below "Price List", and 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).
Processing ...Please wait.
|