I spend half of the day today, wondering why Control.tabs didn’t work properly. The non-active div-s didn’t hide on page load and the only way to initialize them as hidden was to set style=”display:hidden” on every div, which makes the code very ugly.

So I decided to debug the problem and it turned out that the prototype version I’m using is 1.6. Unfortunately (for me) there were changes in hash handling. In fact the old method of setting and getting values doesn’t work anymore. The solution is to use prototype 1.5 or the new method:

this.containers.set(link.key, $(link.key));




comments powered by Disqus