Dragbar can now hold 1000 photos in IE
April 1st, 2008If you’re using Internet Explorer (6 or 7), the dragbar can now hold up to 1000 photos. To try it out, just click on the “add all X pages” link in the bottom left of the dragbar (make sure that you’re looking at a group of photos with a lot of pages).
If you try to add more than 1000 photos, you’ll receive a message that the dragbar is full, like this:
For those interested in the details of how we changed things…
We first mentioned having to limit the capacity of the dragbar in Internet Explorer when we made some updates to Facebook publishing (Facebook Updates: Name Album, Increased Photo Limit).
Originally we kept track of the photos in the dragbar using cookies. As you dropped photos on the dragbar, we used javascript to modify the cookies. When it was time to reload the dragbar (ex. browsing to another page) we read the cookies and displayed the correct set of photos.
It turns out that even though the cookies were each below the maximum size, IE would not return the cookie contents once the total cookies were over a certain size.
So instead of storing the state in cookies, we took another approach. We moved the dragbar state to the server and now query it when necessary.
Enjoy the huge dragbar capacity (also in IE this time).
Derek & Ryan

