Heyllo everybody, could you please help me with the currently programmcode, to get automatically the height of my homepeage? I don't want to scroll the website.I have to write many functions like sizeContentA() and sizeContentB() for my app. For each function I have to change the parameter value, for example sizeContentA and sizeContentB. According to the functions I have differents content,header and footer elements. Some as contentA, headerA and footerA, contentB, headerB and footerB in my html-code. Many Thanks for any help or suggestion.
$(document).ready(sizeContent); $(window).resize(sizeContent); function sizeContent() { var newHeight = $("html").height() - $("#header").height() - $("#footer").height() + "px"; $("#content").css("height", newHeight); }
Hello everybody, I would like to develop some apps with jquery mobile and I need a development tool to develop my apps. They are any tools to develop jquery web apps. Many Thanks
Heyllo everybody, could you please help me with the currently programmcode, to get automatically the height of my homepeage? I don't need to scroll the website. Thanks.
$(document).ready(sizeContent); $(window).resize(sizeContent); function sizeContent() { var newHeight = $("html").height() - $("#header").height() - $("#footer").height() + "px"; $("#content").css("height", newHeight); }