Major update: refactored the API of Interest and ContentObject according to the API notes:
http://sea.remap.ucla.edu:8080/attachments/download/23/lwndn_api-notes_21020830.txt
diff --git a/js/image-loader.html b/js/image-loader.html
index 4ea5b47..b6740bf 100644
--- a/js/image-loader.html
+++ b/js/image-loader.html
@@ -90,10 +90,10 @@
var co = connector.get( contentName );
if(co){
- loadedImageString += DataUtils.toString(co.Content);
- console.log("Received length: " + co.Content.length);
- if(co.Content.length == pieceSize){
- pieceNumber += co.Content.length;
+ loadedImageString += DataUtils.toString(co.content);
+ console.log("Received length: " + co.content.length);
+ if(co.content.length == pieceSize){
+ pieceNumber += co.content.length;
getPiece();
}
else document.getElementById('image').src += loadedImageString;