me.php
Código:
Lo que quiero es que se cargue adentro de un <div > e leído que se ace con ajax pero no puedo dar con un ejemplo que sea compatible con el script que muestro.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>
<body>
<table width="179" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><a href="me.php?i=1" target="_self">numeros</a></td>
<td><a href="me.php?i=2" target="_self">letras</a></td>
<td><a href="me.php?i=3" target="_self">simbolos</a></td>
</tr>
</table>
<?php
if ($i==1)
{
echo "1 2 3 4 5 6 7 8 9 ";
}
elseif ($i==2)
{
echo "a b c d e f g h i j k ...";
}
elseif ($i==3)
{
echo " ! $ % & / ( ) = | @ # ... ";
}
else
{
echo "HOME";
}
?>
</body>
</html>
La idea que tengo es que se muestre algo así “cargando…” y después muestre el contenido en la misma pag. Se entiende?

Desde ya Gracias.


