var image = null; var navControlContainer = null; var navImage = null; function InitializeImage(controlId) { navControlContainer = $("#controlAddIn"); navControlContainer.append('<div id="navImage"></div>'); navImage = $("#navImage"); } function SetImageSize(height, width){ image = new Image(width, height); navImage.append(image); } function LoadImage(base64str) { if(image==null){ image = new Image(800,600); navImage.append(image); } image.src = 'data:image/jpeg;base64,' + base64str; image.style.height ='100%'; image.style.width = '100%'; }
Answers
before: <ScriptUrl>//code.jquery.com/jquery-2.1.0.min.js</ScriptUrl>
after: <ScriptUrl>https://code.jquery.com/jquery-1.9.1.min.js</ScriptUrl>
Now it's working..
I was doing it from scratch...