havethelaughonone'sside (third-person singular simple presenthas the laugh on one's side, present participlehaving the laugh on one's side, simple past and past participlehad the laugh on one's side)
To be able to laugh at another person through having got the better of them.