Hi Alexander,
Sorry for not responding sooner here.
If you hadn't noticed, the problem with attempting to wire to the window object via wf:wire(window,...) is that 'window' gets treated as a Nitrogen ID path and attempts to wire to that (hence the .wfid_window).
At current, the best way I can think of to wire an event in such a way would be to manually attach an event with jquery, an then use the #api{} functionality to receive the triggers. (
http://nitrogenproject.com/demos/api)
The trick would be then, to do something like this, which would even be able to pass the hash value with the postback
wf:wire(#api { name=hashchange, tag=hashchange }),
wf:wire("$(window).bind('hashchange',function(){ page.hashchange(location.hash) })");
...
api_event(hashchange, hashchange, [Hash]) ->
wf:wire(#alert{text=["The hash is now: ",Hash]}).
As far as I can tell, that's the current best solution for trying to wire directly to the window object for the hashchange event.
Give that a shot and see how it works,
-Jesse