Should I include HTML markup in my JSON response?
- by Mike M. Lin
In an e-commerce site, when adding an item to a cart, I'd like to show a popup window with the options you can choose. Imagine you're ordering an iPod Shuffle and now you have to choose the color and text to engrave.
I'd like the window to be modal, so I'm using a lightbox populated by an Ajax call. Now I have two options:
Option 1: Send only…