<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/6876950?origin\x3dhttp://wickrblog.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

wickr on flickr

Async and buffer settled, Next: next page and close()

Tuesday, September 05, 2006

The async and buffer took more time than I expected. I had to reorganize the functions so that it's more understandable.

Next thing to do is handle the get next page. In slideshow mode, I have set the number of images to fetch perpage to 500 (the max amount allowed perpage by flickr). Before this, once the slideshow has reached 500, it goes back to one. I figured that nobody leaves their slideshow on for more than 4 hours (the normal slideshow mode's smallest interval is 30 seconds, 30 seconds times 500 = 4 hours+). But with the badge mode, the interval is much smaller, around 4 seconds. So it very likely the user will manage to get through all the 500 images in the page.

Since I began making the badge mode, I've created a lot of new global variables and images. All these things take up memory, and I need the destroy them when the user exits the slideshow.

To do:
  • Next page in slideshow
  • Clean up variables on close()

Bookmark this post to del.icio.us Digg this post! Bookmark this post to Yahoo! My Web Bookmark this post to Furl