Código PHP:
<html>
<head>
<script src="../modules/prototype.js" type="text/javascript"></script>
<script src="inventario.js" type="text/javascript"></script>
</head>
<body>
<div id="bcontent" >
<div id="ctrmenu">
</div>
<div id="ctrls">
</div>
</div>
<script type="text/javascript" language="javascript">getinvMenu();</script>
</body>
</html>
Código PHP:
function getinvMenu()
{
new Ajax.Request('invmenu.php',{
onSuccess:function(t){
document.getElementById('ctrmenu').innerHTML=t.responseText;
actinv=-1;
}
});
}