All-screen cages are recommended because they are the easiest to set up to obtain good conditions for keeping chams.
But many keepers (usually more experienced ones) manage to keep chameleons thriving in all-glass enclosures. They seem to be preferred in the cold, dry climates of continental Europe.
If you go that route however, a lot more care must be applied to setting up the environment so that there is sufficient ventilation. And a lot of vigilance is required to ensure that conditions remain optimal (and it doesn't get too humid in there after countless mistings and drippings). Constant high humidity, with not enough ventilation, is a great environment for bacteria to grow and cause upper respiratory infections.
Also, glass enclosures require a lot more cleaning than screen enclosures (because of all the watermarks on the glass).
So the basic conclusion is that glass enclosures can be used, but they require a lot more work to maintain, and they are not recommended (especially to novices) because it is very easy to get the conditions wrong in a glass enclosure.