Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/05/2007, 17:33
dianix
 
Fecha de Ingreso: enero-2007
Mensajes: 59
Antigüedad: 17 años, 3 meses
Puntos: 1
Exclamación Re: error Bad Request

Hola b3nj4!

te explico....

Tengo una serie de menus los cuales tienen c/u un ID.

El punto es q cuando el usuario haga click en cualquiera de esos menus llama a la funcion getContenido(contenido, id)

La funcion tiene el sgt js.

Cita:
function getContenido(contenido, id){
xmlHttp = null;
xmlHttp= getXmlHttpObject();

if ((xmlHttp == null)){
alert("Browser does not support HTTP Request")
return}

var url = "";
url="subMenu.php"
url=url+"?q="+id
xmlHttp.onreadystatechange=stateChanged2;
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
Por otro lado,... en el archivo subMenu.php tengo algo asi como esto...

Cita:
<?
if ($_GET['q']=="1"){
?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">Menu1</th>
</tr>
</table>

<?
}
else
{
if ($_GET['q'] == "2"){
?>

<?
}
else
{
?>
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<th scope="row">Menu6</th>
</tr>
</table>

<?
}
}
?>

Cabe resaltar q en el Firefox si me funciona muy bien, veo todo como yo quiero... pero en IE me sale este mensaje...

Your browser sent a request that this server could not understand.

Apache/2.2.3 (CentOS) Server at xxx.yyy. z.w Port 80


Nota: Yo creo q la parte q no entiende el server es aquella q te la he resaltado en negrita especialmente ese signo de interrogacion (?) q esta en rojo (mira arriba)....

Si saco ese signo...me sale un mensaje diciéndome q esa url no se encuentra en el servidor...

Ashudame pleassseeee!

Gracias.