You can retrieve the contents of the div using jQuery
and post it with an ajax request to the service. E.g:
(function($){
$(function(){
var html = $(".inputdiv").html();
var jqxhr = $.post( "http://www.url-of-service.com", {input: html})
.done(function() {
alert( "success" );
})
.fail(function(jqXHR, errorMsg) {
alert( "error: " + errorMsg);
});
});
})(jQuery);
Fiddle: http://jsfiddle.net/PpaS8/1/
Make sure you put the correct url of the service instead of http://www.url-of-service.com
and the correct key for the post var instead of input:
.