aspose file tools*
The moose likes JSF and the fly likes JSF AND JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF AND JSP" Watch "JSF AND JSP" New topic
Author

JSF AND JSP

sonia khetarpal
Greenhorn

Joined: Sep 14, 2006
Posts: 12
i WANT TO SET THE HEIGHT OF CONTENT IN DIV MY CODE IS

function getSize(){
var screenHeight = screen.height;
var contentHeight = screenHeight - 210 +"px";

var content = document.getElementById("content");

content.style.height=contentHeight;

}
AND I AM CALLING getSize() in body onLoad but the height is not getting set
what is the problem if somebody can help?
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
this has nothing to do with jsf. mods move it to html/javascript forum.

why dont you put some debug statements to see what went wrong?



MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Ravi Katam
Greenhorn

Joined: Apr 29, 2005
Posts: 6
First let me ask you a question. Are you using JSP and JSF together? If you are then, the element ID which you are giving as an argument to java script might be different from the "content" when it is transformed to html code in the background. Try looking at the source of the page and see if the ID of the element is same as "content". If it is different then you need to give that ID to java script.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF AND JSP
 
Similar Threads
AWT Applet to Application conversion
urgent: Why my pop-up window wouldn't show up??
pass value to new window
Width and Height
How can I put progress bar in my child window?