javascript - Scroll children content inside <frame> on iOS -
What is the best way to scroll that content from within the loaded page I know that Apple developer documentation Tells to stay away from & lt; Frameset & gt;
and & lt; Frame & gt;
But unfortunately we can not do this because of customer restrictions
HTML is established such as:
& lt; Frameset rows = "0,0,0, *, 0" frameborder = "0" framespacing = "0" border = "0" & gt; & Lt; Frame id = "frm1" name = "frm1" src = "some-aspx-page" frameborder = "0" scrolling = "no" nores size = "" & gt; & Lt; Frame id = "frm2" name = "frm2" src = "result.htm" frameborder = "0" scrolling = "no" nores size = "" & gt; & Lt; Frame id = "frm3" name = "frm3" src = "result.htm" frameborder = "0" scrolling = "no" nores size = "" & gt; & Lt; Frame id = "lesson" name = "lesson" src = "index.html" & gt; & Lt; Frame id = "frm4" src = "some-aspx-page" frameborder = "0" scrolling = "no" nores size = "" & gt;
I know that the IOS Frame and IFrame content spread to the width and height. With an IFrame loading content (as a test), I was doing the following for iOS:
var parentBody = window.parent.document.body; Original parent HTML = window.parent.document.getElementsByTagName ('html'); $ ('.button'). ('Click', function (e)) {e.preventDefault (); $ (Original body, basic HTML). Sammet ({scrollTop: 0}, 400); }
For some reason, I can not do the same with & lt; frameset & gt;
and & lt; Frame & gt;
. Any suggestions would be greatly appreciated! Thanks!
Update: & lt; Frame & gt; The content of
and the page's original page are on the same domain
Comments
Post a Comment