"If I own the stock on the 27th and receive the dividend, can I put in an order to sell on the 28th without any loss of dividend?"
Do you really think it's that easy to game the system?
You can try. But because the price of the stock will be reduced by about the amount of the dividend at the open on the 28th, your chances are not good. But that's not to say it couldn't be done. Two big dividend payers this month have recovered from the dividend price adjustment by the end of the ex-date, so it's not impossible.