PDA

View Full Version : when using BorderLayout, how does back and forward work?



sjivan
23 Nov 2006, 7:12 PM
In http://www.yui-ext.com/docs/ for example, there's a side nav in the west region. On clicking any link here, the content is displayed in the "main" region. My The brower back / forward buttons are working without the entire page being reloaded (the side nav does not get refreshed).

My question is how is this working?? I initially suspected that a frame is being generated however the rendered source does not show any frame being created. I was pleased to see this behavior, but would like to know how this is working?

Thanks,
Sanjiv

Herm
23 Nov 2006, 8:16 PM
It's an iframe that makes it work 'as expected'. It gets loaded onclick in the west. Jack responded to this kind of question here: http://www.yui-ext.com/forum/viewtopic.php?t=821&highlight=iframe (see his second last comment on page one of that topic).