oulan / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Back button doesn't work in an iframe #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a iUI page in an iframe
2. Go to a subpage
3. Press back button

What is the expected output? What do you see instead?

The page stays the same (stays on the second page), if you press back a few 
times it will reload out of the site/iframe (going backward in the history)

What version of the product are you using? On what operating system?

latest iUI on chrome v6

Please provide any additional information below.

Original issue reported on code.google.com by s1r...@gmail.com on 24 Aug 2010 at 5:34

GoogleCodeExporter commented 9 years ago
probably beacause of the use of "history.back();"

Original comment by s1r...@gmail.com on 24 Aug 2010 at 8:02

GoogleCodeExporter commented 9 years ago
tested with v0.31

Original comment by s1r...@gmail.com on 7 Sep 2010 at 2:15

GoogleCodeExporter commented 9 years ago
I'm seeing the same problem w/o any iframes.

Adding a print inside 'checkOrientAndLocation' shows that location.hash is 
empty (after the 'history.back()' operation), and this way pageId gets empty 
too:

    if (location.hash != currentHash)
    {
        var pageId = location.hash.substr(hashPrefix.length);
        console.log('seem to have gone...' + pageId + ', ' + location.hash + ', ' + currentHash);
        if (pageId == '') {
            alert('hm...');
        }
        iui.showPageById(pageId);
    }

btw, this code becomes kinda infinite loop (since this function is called 
periodically).

Original comment by sgs...@gmail.com on 7 Jun 2011 at 7:36

GoogleCodeExporter commented 9 years ago
this does not always happen :(

Original comment by sgs...@gmail.com on 7 Jun 2011 at 7:38

GoogleCodeExporter commented 9 years ago
iUI 0.40-dev1 and later do not user history.back()

Original comment by msgilli...@gmail.com on 9 Jan 2012 at 6:50