Toxic substances can cause vomiting, both food, and liquid. If a dog is throwing up liquid, its possible that he will have foam in the mouth as well. Other symptoms of toxin ingestion can include lethargy, diarrhea, dilated pupils, lack of coordination, pale gums, high heart and breathing rate, and seizures or collapse in extreme cases.