Whatever you do has to be done quickly if you want to have a chance of saving him. They crash quite quickly once they start showing signs of illness as a rule.
He needs to have a UVB light...see below for more information about it and the reasons why.
He needs to have his insects dusted with calcium at almost all feedings...see below for the reasoning, etc.
You need to provide a basking area and cage temperatures in the right range or they can't digest the food properly and thus won't get the nutrients they need and won't likely want to eat much either. If he won't try to catch the food, try dripping water on the tip of his nose and if/when he starts to drink, stick a cricket or other insect head first into his mouth
between his teeth so he will be able to
chew it.
If he's lacking calcium, it not only affects the bones, but other systems too and he may be slow to digest the food, become constipated, develop other issues.
If you haven't been giving him the proper calcium you can get a liquid calcium sandoz or calcium gluconate at the pharmacy and get a needleless syringe to give him some for a few days. Its more easily digested and absorbed than the powders are.
Hopefully if you quickly make the changes he will recover. Good luck!
Here's some information I hope will help you with supplementing, etc.....
Appropriate cage temperatures aid in digestion and thus play a part indirectly in nutrient absorption.
Exposure to UVB from either direct sunlight or a proper UVB light allows the chameleon to produce D3 so that it can use the calcium in its system to make/keep the bones strong and be used in other systems in the chameleon as well. The UVB should not pass through glass or plastic no matter whether its from the sun or the UVB light. The most often recommended UVB light is the long linear fluorescent Repti-sun 5.0 tube light. Some of the compacts, spirals and tube lights have caused health issues, but so far there have been no bad reports against this one.
A wide variety of insects that have been well fed and gutloaded should be fed to it.
Since many of the feeder insects we use in captivity have a poor ratio of calcium to phosphorus in them, its important to dust the insects just before you feed them to the chameleon at most feedings with a phos.-free calcium powder to help make up for it. (I use Rep-cal phosphorus-free calcium).
If you also dust twice a month with a phos.-free calcium/D3 powder it will ensure that your chameleon gets some D3 without overdoing it. It leaves the chameleon to produce the rest of what it needs through its exposure to the UVB light. D3 from supplements can build up in the system but D3 produced from exposure to UVB shouldn't as long as the chameleon can move in and out of it. (I use Rep-cal phos.-free calcium/D3).
Dusting twice a month as well with a vitamin powder that contains a beta carotene (prOformed) source of vitamin A will ensure that the chameleon gets some vitamins without the danger of overdosing the vitamin A. PrEformed sources of vitamin A can build up in the system and may prevent the D3 from doing its job and push the chameleon towards MBD. However, there is controversy as to whether all/any chameleons can convert the beta carotene and so some people give some prEformed vitamin A once in a while. (I use herptivite which has beta carotene.)
Gutloading/feeding the insects well helps to provide what the chameleon needs. I gutload crickets, roaches, locusts, superworms, etc. with an assortment of greens (dandelions, kale, collards, endive, escarole, mustard greens, etc.) and veggies (carrots, squash, sweet potato, sweet red pepper, zucchini, etc.)
Calcium, phos., D3 and vitamin A are important players in bone health and other systems in the chameleon (muscles, etc.) and they need to be in balance. When trying to balance them, you need to look at the supplements, what you feed the insects and what you feed the chameleon.
Please note that various supplements have various amounts of D3 and vitamin A and so some can be given more often than others. The idea still is not to overdo the fat soluble vitamins like D3 and prEformed vitamin A.
Here are some good sites for you to read too...
http://chameleonnews.com/07FebWheelock.html
http://web.archive.org/web/200605020...Vitamin.A.html
http://web.archive.org/web/200406080...d.Calcium.html
http://www.uvguide.co.uk/
http://web.archive.org/web/200601140...ww.adcham.com/
If you can't access the sites above that have the word "archive" in you can do it through the WayBackMachine.