varcanvas=document.getElementById('canvas3');// choose canvas element to convert
vardataURL=canvas.toDataURL();// convert cabvas to data url we can handle
//console.log(dataURL);
varoutputImg=document.createElement("img");// create img tag
outputImg.src=dataURL// assign dataurl to image tag 'src' option
document.body.appendChild(outputImg); // append img to body (to be assigned to place holder div)
outputImg.src=dataURL;// assign dataurl to image tag 'src' option
//document.body.appendChild(outputImg); // append img to body (to be assigned to place holder div)
// append data to text area...not working yet..
varphoto=document.getElementById('message');// add data url to message field... not working yet
@ -361,7 +362,7 @@ function submitImage(){
//photo += outputImg.src;
photo.innerHTML+=outputImg.src;
// sendMessage( "10 ", "outputImg.src" ); << breaks vereything ;) and is an bad idea: TODO: append data stringto message field, or url whatever and preview it locally (append to body) before submitting, but textarea is refreshing or something ugh...aka find clean solution, add url parameter instead of dirty innerhtml hacking
sendMessage(newDate().getTime(),"test");//<< breaks vereything ;) and is an bad idea: TODO: append data stringto message field, or url whatever and preview it locally (append to body) before submitting, but textarea is refreshing or something ugh...aka find clean solution, add url parameter instead of dirty innerhtml hacking