Answer the question
In order to leave comments, you need to log in
How to measure iframe height in classmates?
Hello.
Tell me how to solve this problem I'm
developing an IFRAME application for OK
There are 2 files index.html And index2.html
<head>
<script src="http://api.odnoklassniki.ru/js/fapi5.js"></script>
</head>
<script>
var rParams = FAPI.Util.getRequestParameters();
FAPI.init(rParams["api_server"], rParams["apiconnection"],
function() {
alert("Инициализация прошла успешно");
}, function(error) {
alert("Ошибка инициализации");
});
$(function() {
FAPI.UI.setWindowSize(760, 100);
});
</script>
<a href="index2.html">Клик</a>
<head>
<script src="http://api.odnoklassniki.ru/js/fapi5.js"></script>
</head>
<script>
var rParams = FAPI.Util.getRequestParameters();
FAPI.init(rParams["api_server"], rParams["apiconnection"],
function() {
alert("Инициализация прошла успешно");
}, function(error) {
alert("Ошибка инициализации");
});
$(function() {
FAPI.UI.setWindowSize(760, 200);
});
</script>
<a href="index.html">Клик</a>
Answer the question
In order to leave comments, you need to log in
You have an IFRAME open. Parameters are passed to it. They are used during FAPI initialization.
When you redirect inside your iframe to another html page, you don't pass those parameters to it, so they are lost. So either you need (the choice is yours)
- save the parameters somewhere,
- paste them to the links inside,
- do without a redirect,
- wrap in another 1 iframe already on your part.
The title of the window does not change, scrolling within your iframe is in your hands.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question