News for hackers. Stuff that matters.
Re:Movable Ink Launches Service To Stream Live Content In Em... by pfraze on Thursday November 10, 2011 @03:55PM (#3221834)
How does it work? I'm in the same boat as jsdalton -- I thought it was't possible.
Re:Movable Ink Launches Service To Stream Live Content In Em... by mnutt on Thursday November 10, 2011 @04:08PM (#3221877)
The person sending the emails creates a dynamic web page. It can use all of the latest and greatest web technologies. (AJAX, WebSockets, CSS3, SVG, etc) Then they create a Web Crop in our dashboard, and we give them an HTML embed code.

When a user opens the email, it points to an image on our servers. At that point, we load the dynamic web page, take a screenshot, crop it, and render it in your browser. But at that point instead of closing the connection, we leave it open. Every second, we repeat the process, replacing the old image with the new one.

Re:Movable Ink Launches Service To Stream Live Content In Em... by pfraze on Thursday November 10, 2011 @04:55PM (#3222073)
Crafty! How do you get the image to overwrite? I would think that you could only append to the image data that's already been transmitted.
Re:Movable Ink Launches Service To Stream Live Content In Em... by mnutt on Thursday November 10, 2011 @05:44PM (#3222234)
Our current method uses the content-type multipart/x-mixed-replace. (Remember http://www.wired.com/wired/archive/5.03/ff_push.html? Good times...) When the request starts you specify a boundary string; then every time the browser sees that boundary string it knows to replace the existing image.
Re:Movable Ink Launches Service To Stream Live Content In Em... by draz on Thursday November 10, 2011 @06:56PM (#3222568)
it's (very) cool, but x-mixed-replace is not supported in all browsers. I sure hope the browsers that support it don't end up dropping their support.
Re:Movable Ink Launches Service To Stream Live Content In Em... by pfraze on Saturday November 12, 2011 @11:29AM (#3228096)
That's cool, thanks for the explanation.