Click here to Skip to main content
15,886,199 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Java Code Pin
Bradml11-Apr-07 14:55
Bradml11-Apr-07 14:55 
AnswerRe: Java Code Pin
Christian Graus11-Apr-07 15:56
protectorChristian Graus11-Apr-07 15:56 
QuestionJ2EE/Java Integration with Sharepoint. Pin
Vikram.....11-Apr-07 2:58
Vikram.....11-Apr-07 2:58 
AnswerRe: J2EE/Java Integration with Sharepoint. Pin
Magnus Salgo12-Apr-07 0:13
Magnus Salgo12-Apr-07 0:13 
AnswerRe: J2EE/Java Integration with Sharepoint. Pin
abcdpqr1019-Jan-10 12:51
abcdpqr1019-Jan-10 12:51 
QuestionISAPI Rewrite Pin
L Viljoen11-Apr-07 2:53
professionalL Viljoen11-Apr-07 2:53 
AnswerRe: ISAPI Rewrite Pin
L Viljoen11-Apr-07 4:26
professionalL Viljoen11-Apr-07 4:26 
QuestionFirefox Javascript Nightmare Pin
L Viljoen11-Apr-07 1:41
professionalL Viljoen11-Apr-07 1:41 
Hi guys I don't know if anyone can help me but I have a piece of javascript that gets the window dimensions and places the content in the middle, but when I run my app in firefox it doesnt even seem to execute the javascript.

<script language="JavaScript" type="text/jscript" >
<!--
function setHeight(){
document.getElementById("bodyContent").style.visibility = "hidden";
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE

myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
//window.alert( 'Width = ' + myWidth ); //Show When Debugging
//window.alert( 'Height = ' + myHeight ); //Show When Debugging

//Set Height of Table
document.getElementById("placeholderTable").style.height=(myHeight-50)+"px";
document.getElementById("RadMenu1").style.height = 2+"px"
document.getElementById("RadMenu1").style.height = 28+"px"

document.getElementById("bodyContent").style.visibility = "visible";
document.getElementById("bodyContent").style.display = "block";
alert("hello");
}
-->
<!-- ============================= -->
</script>



This is executed on my body's onload() event.

Please help!

Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
AnswerRe: Firefox Javascript Nightmare Pin
Guffa11-Apr-07 2:06
Guffa11-Apr-07 2:06 
AnswerRe: Firefox Javascript Nightmare Pin
Paddy Boyd11-Apr-07 2:54
Paddy Boyd11-Apr-07 2:54 
AnswerRe: Firefox Javascript Nightmare Pin
L Viljoen11-Apr-07 2:57
professionalL Viljoen11-Apr-07 2:57 
GeneralRe: Firefox Javascript Nightmare Pin
Guffa11-Apr-07 4:16
Guffa11-Apr-07 4:16 
GeneralRe: Firefox Javascript Nightmare Pin
L Viljoen11-Apr-07 4:21
professionalL Viljoen11-Apr-07 4:21 
QuestionRegister Javascript Pin
tadhg8811-Apr-07 1:13
tadhg8811-Apr-07 1:13 
AnswerRe: Register Javascript Pin
Guffa11-Apr-07 2:10
Guffa11-Apr-07 2:10 
GeneralRe: Register Javascript Pin
tadhg8811-Apr-07 4:13
tadhg8811-Apr-07 4:13 
GeneralRe: Register Javascript Pin
RichardGrimmer11-Apr-07 5:48
RichardGrimmer11-Apr-07 5:48 
QuestionProblem in FireFox.. Pin
hiral_shah10-Apr-07 19:48
hiral_shah10-Apr-07 19:48 
AnswerRe: Problem in FireFox.. Pin
enjoycrack11-Apr-07 0:42
enjoycrack11-Apr-07 0:42 
Questionpoker game Pin
princy_cute10-Apr-07 18:49
princy_cute10-Apr-07 18:49 
AnswerRe: poker game Pin
Paddy Boyd11-Apr-07 1:07
Paddy Boyd11-Apr-07 1:07 
QuestionData Access Layer on Web Service Pin
Tuwing.Sabado10-Apr-07 16:43
Tuwing.Sabado10-Apr-07 16:43 
QuestionObtain Text value from Option Element Pin
Abbas8210-Apr-07 10:10
Abbas8210-Apr-07 10:10 
QuestionInput string not in a correct format Pin
No-e10-Apr-07 5:43
No-e10-Apr-07 5:43 
AnswerRe: Input string not in a correct format Pin
Mark Greenwood10-Apr-07 18:02
Mark Greenwood10-Apr-07 18:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.