Chargement du contenu dans le DIV à partir d'une page html
WebClient client = new WebClient();
String htmlCode = client.DownloadString("http://localhost:18995/Content/ContentPage.html");
textAcceptation.Controls.Add(new LiteralControl(htmlCode));
Vérification de la lecture du contenu
$(".AcknowledgeOuterDiv").scroll(function () {
var outerDiv = $(this);
var innerDiv = $(">.AcknowledgeInnerDiv", $(this));
var ScrollMod = 1;
if (outerDiv.offset().top < innerDiv.outerHeight()) {
ScrollMod = -1;
}
var innerOuterHeight = innerDiv.outerHeight();
var boxHeight = outerDiv.height();
var boxOffsetTop = outerDiv.offset().top;
if (Math.ceil(Math.abs(boxHeight) - innerDiv.offset().top + boxOffsetTop + 1) >= innerOuterHeight) {
$("#CheckId").attr("disabled", false);
$(this).unbind("scroll");
}
else {
$("#CheckId").attr("disabled", true);
}
});
No comments:
Post a Comment