Click here to Skip to main content
15,921,941 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Javascript obfuscator. Pin
Hesham Amin1-Apr-07 6:46
Hesham Amin1-Apr-07 6:46 
Questionsession error in php Pin
kumar bharat bhusanam30-Mar-07 5:37
kumar bharat bhusanam30-Mar-07 5:37 
AnswerRe: session error in php Pin
Bradml30-Mar-07 13:14
Bradml30-Mar-07 13:14 
QuestionAJAX File Upload Form Submission Pin
RedDragon2k30-Mar-07 5:31
RedDragon2k30-Mar-07 5:31 
AnswerRe: AJAX File Upload Form Submission Pin
Dmitry Khudorozhkov31-Mar-07 2:42
Dmitry Khudorozhkov31-Mar-07 2:42 
Questiongetting RecordCount = -1 Pin
Ankur.Bakliwal30-Mar-07 3:48
Ankur.Bakliwal30-Mar-07 3:48 
AnswerRe: getting RecordCount = -1 Pin
andyharman30-Mar-07 6:17
professionalandyharman30-Mar-07 6:17 
QuestionWindow Dimensions Pin
L Viljoen29-Mar-07 3:01
professionalL Viljoen29-Mar-07 3:01 
AnswerRe: Window Dimensions Pin
Not Active29-Mar-07 5:41
mentorNot Active29-Mar-07 5:41 
AnswerRe: Window Dimensions Pin
Vasudevan Deepak Kumar29-Mar-07 9:31
Vasudevan Deepak Kumar29-Mar-07 9:31 
GeneralRe: Window Dimensions Pin
L Viljoen29-Mar-07 21:35
professionalL Viljoen29-Mar-07 21:35 
QuestionHow to create web page embedded with media player without using ActiveX controls? Pin
A.Venkata ramana29-Mar-07 1:29
A.Venkata ramana29-Mar-07 1:29 
AnswerRe: How to create web page embedded with media player without using ActiveX controls? Pin
Vasudevan Deepak Kumar29-Mar-07 9:31
Vasudevan Deepak Kumar29-Mar-07 9:31 
QuestionChanging Background image at run time Pin
EEmaan28-Mar-07 23:57
EEmaan28-Mar-07 23:57 
AnswerRe: Changing Background image at run time Pin
L Viljoen29-Mar-07 1:07
professionalL Viljoen29-Mar-07 1:07 
QuestionHTML Valign Pin
L Viljoen28-Mar-07 23:08
professionalL Viljoen28-Mar-07 23:08 
AnswerRe: HTML Valign Pin
Bradml29-Mar-07 0:00
Bradml29-Mar-07 0:00 
GeneralRe: HTML Valign Pin
L Viljoen29-Mar-07 1:01
professionalL Viljoen29-Mar-07 1:01 
AnswerRe: HTML Valign Pin
RichardGrimmer29-Mar-07 5:54
RichardGrimmer29-Mar-07 5:54 
AnswerRe: HTML Valign Pin
L Viljoen29-Mar-07 21:32
professionalL Viljoen29-Mar-07 21:32 
Thanx to everyone that contributed,
I am able to center my content even when resizing and decided to share my code with you all: Wink | ;)

The JavaScript Goes in the <head> </head> tags

===============================================================================================

<!-- Gets and Sets the size of the Table to allow VAlign -->
<script language="javascript" type="text/jscript">
function setHeight(){
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+"px";
}


</script>
<!-- ============================= -->
================================================================================================

And then your body should look something like this

=============================================================================================
<body style=" margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; vertical-align:middle" onload="setHeight();" onresize="setHeight();">
<div align="center">
<table id="placeholderTable" cellpadding="0" cellspacing="0" border="0" style="vertical-align:middle;" >
<tr>
<td>
//Table Containing Content
</td>
</tr>
<table>
</div>
</body>
================================================================================================

Enjoy!

L Viljoen
Web Developer - PCW New Media
South African Branch
QuestionRepeater Control data export problem Pin
VaibhavTiparadi28-Mar-07 23:08
VaibhavTiparadi28-Mar-07 23:08 
QuestionCrystalReportviewer : Navigation buttons Pin
paijyj28-Mar-07 22:46
paijyj28-Mar-07 22:46 
QuestionCDO Message encoding Pin
Paddy Boyd28-Mar-07 22:17
Paddy Boyd28-Mar-07 22:17 
AnswerRe: CDO Message encoding Pin
Vasudevan Deepak Kumar29-Mar-07 9:29
Vasudevan Deepak Kumar29-Mar-07 9:29 
GeneralRe: CDO Message encoding Pin
Paddy Boyd29-Mar-07 22:19
Paddy Boyd29-Mar-07 22:19 

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.