According to Microsoft, it has to run in both the page invoking the iframe and the object of the iframe. I have it in both places. On the chat.mydomain.com end, it is in CH_MainForm.Aspx.
I hope this will work out, it seems to be the only chat option I really want.