This is a javascript question. I have javascript functions defined in all jsps.
Thanks.
User Profile
Collapse
-
Thanks to all of you guys. I have resolved this issue using 'scrollHeight' property. Pleas see the code below.
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <script> window.onload = pageLoad; function pageLoad() { pageHeight = document.getElementById('page').scrollHeight;
Leave a comment:
-
Accessing grand parent function when parent window is closed.
Is this possible?
I am trying to access function from grand parent window (the main window) in my child popup window but the parent window is closed in this case.
a.jsp --> grand parent window (main browser window)
b.jsp--> parent window (pop up window)
c.jsp--> child window (pop up window)
I need to call a function from a.jsp in c.jsp when b.jsp is closed.
Than... -
I tried your code but it gives me the same issue. DIV height does not stretch to the page height when content is longer than viewport.
In the following example, I don't get the red background till the end of the page.
Thanks.
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang= "en"> <head> <meta http-equiv= "Content-Type"
Leave a comment:
-
Making a DIV height equal to page height
I want to create a div over the body which should take 100% height of the page.
I am defining html and body height is 100%. Also the div height is 100%.
still it's not working for me. Can some one please tell me what is wrong?
below is the code snippet.
Thanks.
Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD>
No activity results to display
Show More
Leave a comment: