Situation
Keeping track of changes in the URL hash and ensuring proper functionality for the forward/back buttons are essential tasks for libraries that manage Ajax history. There are two main approaches to implementing these libraries. One option is to have a constant poller checking the URL, especially since some browsers lack support for the onHashChange event. Another approach involves using a hidden iFrame to manipulate the browser's history. While some may argue that the hidden iFrame method is superior to polling, it fails to update the actual URL displayed in the browser. This means that if a user wants to share their current state within the web application, they would always end up sharing the initial state instead.
Inquiry
Is there a technique available for managing Ajax history that eliminates the need for continuous polling yet still updates the primary browser's URL accordingly?