ottimo! funziona egregiamente!!
ho usato questo codice
codice:
<html>
<head>
<script language="javascript">
function getWidth()
{
x = document.getElementById('test');
return x.offsetWidth;
}
function getHeight()
{
y = document.getElementById('test');
return y.offsetHeight;
}
function pippo()
{
alert('larghezza tabella è ' + getWidth()+ ' pixel');
alert('altezza tabella è ' + getHeight()+ ' pixel');
}
</script>
</head>
<body onload="pippo();">
<table id="test" border="1" width="100%" height="100%">
<tr>
<td>ciao mondo</td>
</tr>
<tr>
<td>ciao mondo</td>
</tr>
<tr>
<td>ciao mondo</td>
</tr>
</table>
</body>
</html>
volevo chiudere la cosa in bellezza... in pratica questa cosa mi serve perchè a seconda delle dimensioni della tabella, genere un file da usare come sfondo con x e y delle dimensioni della tabella che lo ospita... ora mi chiedevo però come ottenere le variabili date da java e passarle a php, sempre nella stessa pagina...