Positively Polite: A Beginner's Guide to Basic Pet Manners Training

https://brooklynpup.livejournal.com/1788.html

You need to encourage them to keep all four paws on the ground to direct their attention. You need to reward them for maintaining a calm demeanor during greetings.