How to scroll to an iframe with reference to another url?

Asked

Viewed 29 times

0

I have an iframe that has src directed to another url, I know that in this case I can not access the content for security reasons, but what I wanted is to simply position the scroll I a certain position

That is not possible?

I tried to:

$(".scroll").click(function () {
    var iframe = $('#xframe').contents();
    iframe.scrollTop(400);
});

Above the browser locks for security

Also:

$(".scroll").click(function () {
    var iframe = $('#xframe');
    iframe.scrollTop(400);
});

The second has no effect

  • 1

    See help: http://answall.com/questions/134090/%C3%89-poss%C3%advel-criar-um-iframe-de-uma-parte-espec%C3%adfica-de-uma-p%C3%a1gina/134095#134095

  • @Miguel his tip helped a lot, although the result is not what I would like, by the limitations of the company that provides me the data for iframe, would work very well with json if they did there, but we push with the belly.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.