Commit 1166d200f95314ec727a18f11d4c8d44ba2afacb

Authored by Amrita Vishnoi
1 parent f2387d04

tried text box

WebApplication3/app/controller/ImageDataController.js
... ... @@ -103,7 +103,7 @@ AIA.controller("ImageDataController", ["$rootScope", "ImageService","DataService
103 103 var imgData = ctx.getImageData(0, 0, $rootScope.JsonDataArray[i].width, $rootScope.JsonDataArray[i].height);
104 104 $rootScope.maskImageData.push({ "DataForMciImage": imgData.data, "MciImageName": $rootScope.JsonDataArray[i].imageName, "MciImageBodyRegionID": $rootScope.JsonDataArray[i].bodyRegionID });
105 105  
106   - txtContent.textContent = JSON.stringify($rootScope.maskImageData);
  106 + txtArea.textContent = JSON.stringify($rootScope.maskImageData);
107 107 break;
108 108 //console.log(JSON.stringify($rootScope.maskImageData));
109 109  
... ...
WebApplication3/index.html
... ... @@ -11,17 +11,10 @@
11 11 <script src="services/DataService.js"></script>
12 12 </head>
13 13 <body ng-controller="ImageDataController" ng-init="sendImageData()">
14   - <!--ng-init="sendImageData()"-->>
  14 + <!--ng-init="sendImageData()"-->
15 15  
16 16 <textarea id="txtArea"></textarea>
17   - <!--<form name="form" ng-submit="save()" novalidate>
18   -
19   - </form>-->
20 17 <div><img id="scream" src="" alt="The Scream" /></div>
21   - <input type='text' ng-model="poll.name"><br />
22   - <textarea id="txtContent"></textarea><br />
23   - <button class="btn btn-primary" ng-click="saveEntry()">Save</button>
24   - <!--<button type="button" id="btnImgeData" onclick="sendArray()">GetImageData</button>-->
25 18 <canvas id="myCanvas" style="border:1px solid #d3d3d3;">
26 19 Your browser does not support the HTML5 canvas tag.
27 20 </canvas>
... ...