Embedded pages and back() - functionality

Hi

We have some embedded jsp pages within a Vaadin app. Some of these lead to new jsp pages within the same iframe. We’ve been using history.back() to return from them to the previous jsp page.

However, FireFox seems to have a bug when using history.back() within iframes. I’ve found a workaround that uses [frameName]
.history.back() instead.

Is there any way to find out the names of the embedded iframes Vaadin uses? Or better yet, name them myself.

Any other workarounds would be highly appreciated as well. We just need to get a back - functionality within the iframe to work.

Here’s a good and short description of the problem:


Javascript history.back() not working for iframes in Firefox

Hi,

Is the back-link within the iframe, or outside the iframe?

In the former case,
self.history.back()
should probably work - right?

If the link is outside the iframe: Embedded uses the component PID as name, so you could for instance make a custom widget (extend Link or whatever) that does the trick.

Best Regards,
Marc

Thanks for the answer.

Looks like the problem is even more difficult than I thought. There’s something else in our application or the jsp that’s causing the problem. I’ll try to reproduce it with a clean test project or try to avoid the whole issue by a workaround.

Hi,

Valetteri I got the same problem with back(); maybe you got now any solution for this ?