The Ultimate Guide to Riding Well: David L. Hough: 0731360583598: Amazon.com: Books

‘);
doc.close();
}
}

this.iframeload = function () {
var iframe = document.getElementById(iframeId);
iframe.style.display = ”;
setTimeout(function () {
setIframeHeight(initialResizeCallback);
}, 20);
}

function getDocHeight(doc) {
var contentDiv = doc.getElementById(“iframeContent”);
var docHeight = 0;
if(contentDiv){
docHeight = Math.max(
contentDiv.scrollHeight,
contentDiv.offsetHeight,
contentDiv.clientHeight
);
}
return docHeight;
}

function setIframeHeight(resizeCallback) {
var iframeDoc, iframe = document.getElementById(iframeId);
iframeDoc = ((iframe.contentWindow && iframe.contentWindow.document) || iframe.contentDocument);
if (iframeDoc) {
var h = getDocHeight(iframeDoc);
if (h && h != 0) {
iframe.style.height = parseInt(h) + ‘px’;
if(typeof resizeCallback == “function”) {
resizeCallback(iframeId);
}
} else if (nTries

Editorial Reviews

About the Author

David L. Hough: David L. Hough is a longtime motorcyclist and journalist. He began motorcycling as a means of commuting to work. He is the author of numerous articles, columns, and books. In 2009 he was inducted into the Motorcycle Hall of Fame.


Source

Be the first to comment

Leave a Reply

Your email address will not be published.


*